2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXDISKSTREAMCONTROLLER_H
|
|
|
|
#define MXDISKSTREAMCONTROLLER_H
|
|
|
|
|
2023-11-28 08:26:39 -05:00
|
|
|
#include "decomp.h"
|
|
|
|
#include "mxdsbuffer.h"
|
2023-12-13 16:44:14 -05:00
|
|
|
#include "mxdsstreamingaction.h"
|
2023-12-11 16:33:46 -05:00
|
|
|
#include "mxstl/stlcompat.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxstreamcontroller.h"
|
|
|
|
#include "mxtypes.h"
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
#include <string.h>
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dccb8
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0xc8
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxDiskStreamController : public MxStreamController {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxDiskStreamController();
|
|
|
|
virtual ~MxDiskStreamController() override;
|
|
|
|
|
2023-12-27 15:31:51 -05:00
|
|
|
virtual MxResult Tickle() override; // vtable+0x8
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100c7360
|
2023-10-24 19:38:27 -04:00
|
|
|
inline virtual const char* ClassName() const override // vtable+0x0c
|
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x10102144
|
2023-10-24 19:38:27 -04:00
|
|
|
return "MxDiskStreamController";
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100c7370
|
2023-12-13 05:48:14 -05:00
|
|
|
inline virtual MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, MxDiskStreamController::ClassName()) || MxStreamController::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-11-28 08:26:39 -05:00
|
|
|
|
2023-12-27 15:31:51 -05:00
|
|
|
virtual MxResult Open(const char* p_filename) override; // vtable+0x14
|
|
|
|
virtual MxResult VTable0x18(undefined4, undefined4) override; // vtable+0x18
|
|
|
|
virtual MxResult VTable0x20(MxDSAction* p_action) override; // vtable+0x20
|
|
|
|
virtual MxResult VTable0x24(MxDSAction* p_action) override; // vtable+0x24
|
|
|
|
virtual MxDSStreamingAction* VTable0x28() override; // vtable+0x28
|
|
|
|
virtual MxResult VTable0x30(MxDSAction* p_action) override; // vtable+0x30
|
|
|
|
virtual MxResult VTable0x34(undefined4); // vtable+0x34
|
|
|
|
|
2023-12-25 13:32:01 -05:00
|
|
|
inline MxBool GetUnk0xc4() const { return m_unk0xc4; }
|
|
|
|
|
2024-01-17 12:08:48 -05:00
|
|
|
MxResult FUN_100c7890(MxDSStreamingAction* p_action);
|
|
|
|
void FUN_100c7cb0(MxDSStreamingAction* p_action);
|
2023-12-25 13:32:01 -05:00
|
|
|
void FUN_100c7f40(MxDSStreamingAction* p_streamingaction);
|
2024-01-17 12:08:48 -05:00
|
|
|
void FUN_100c8120(MxDSAction* p_action);
|
2023-12-25 17:39:31 -05:00
|
|
|
void InsertToList74(MxDSBuffer* p_buffer);
|
2024-01-17 12:08:48 -05:00
|
|
|
void FUN_100c8670(MxDSStreamingAction* p_streamingAction);
|
2023-12-25 13:32:01 -05:00
|
|
|
|
2023-11-28 08:26:39 -05:00
|
|
|
private:
|
|
|
|
MxStreamListMxDSAction m_list0x64; // 0x64
|
2023-12-28 11:19:40 -05:00
|
|
|
MxBool m_unk0x70; // 0x70
|
2023-11-28 08:26:39 -05:00
|
|
|
list<MxDSBuffer*> m_list0x74; // 0x74
|
|
|
|
MxStreamListMxDSAction m_list0x80; // 0x80
|
2023-12-13 05:48:14 -05:00
|
|
|
undefined2 m_unk0x8c; // 0x8c
|
2023-11-28 08:26:39 -05:00
|
|
|
MxStreamListMxDSAction m_list0x90; // 0x90
|
|
|
|
MxCriticalSection m_critical9c; // 0x9c
|
|
|
|
MxStreamListMxDSAction m_list0xb8; // 0xb8
|
2023-12-25 13:32:01 -05:00
|
|
|
MxBool m_unk0xc4; // 0xc4
|
2023-12-13 16:44:14 -05:00
|
|
|
|
2023-12-25 13:32:01 -05:00
|
|
|
void FUN_100c7970();
|
2023-12-22 14:03:55 -05:00
|
|
|
void FUN_100c7ce0(MxDSBuffer* p_buffer);
|
|
|
|
MxResult FUN_100c7d10();
|
|
|
|
void FUN_100c7980();
|
|
|
|
MxDSStreamingAction* FUN_100c7db0();
|
|
|
|
MxResult FUN_100c8360(MxDSStreamingAction* p_action);
|
|
|
|
void FUN_100c8540();
|
|
|
|
void FUN_100c8720();
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
2024-01-14 16:28:46 -05:00
|
|
|
// TEMPLATE: LEGO1 0x100c14d0
|
|
|
|
// list<MxDSAction *,allocator<MxDSAction *> >::erase
|
|
|
|
|
2023-12-12 14:27:17 -05:00
|
|
|
// TEMPLATE: LEGO1 0x100c7330
|
|
|
|
// list<MxDSAction *,allocator<MxDSAction *> >::_Buynode
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x100c7420
|
|
|
|
// list<MxDSBuffer *,allocator<MxDSBuffer *> >::~list<MxDSBuffer *,allocator<MxDSBuffer *> >
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x100c7490
|
|
|
|
// list<MxDSBuffer *,allocator<MxDSBuffer *> >::_Buynode
|
|
|
|
|
2023-12-28 11:56:54 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100c74c0
|
|
|
|
// MxDiskStreamController::`scalar deleting destructor'
|
|
|
|
|
2023-12-12 14:27:17 -05:00
|
|
|
// TEMPLATE: LEGO1 0x100c74e0
|
|
|
|
// List<MxDSBuffer *>::~List<MxDSBuffer *>
|
|
|
|
|
2024-01-17 12:08:48 -05:00
|
|
|
// TEMPLATE: LEGO1 0x100c7ef0
|
|
|
|
// list<MxNextActionDataStart *>::insert
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#endif // MXDISKSTREAMCONTROLLER_H
|