add stubbed functions for MxStreamController used by MxStreamer

This commit is contained in:
MattKC 2023-09-25 16:31:07 -07:00
parent 7827e3a962
commit 489f08e35f
2 changed files with 35 additions and 2 deletions

View File

@ -1,8 +1,32 @@
#include "mxstreamcontroller.h" #include "mxstreamcontroller.h"
#include "mxautolocker.h"
// OFFSET: LEGO1 0x100c0b90 STUB
MxStreamController::MxStreamController()
{
// TODO
}
// OFFSET: LEGO1 0x100c1290 STUB
MxStreamController::~MxStreamController()
{
// TODO
}
// OFFSET: LEGO1 0x100c20d0 STUB // OFFSET: LEGO1 0x100c20d0 STUB
MxBool MxStreamController::IsStillInUse() MxBool MxStreamController::CanBeDeleted()
{ {
// TODO // TODO
return TRUE; return TRUE;
} }
// OFFSET: LEGO1 0x100c1520
MxResult MxStreamController::Open(const char *p_filename)
{
MxAutoLocker locker(&m_criticalSection);
// TODO
return SUCCESS;
}

View File

@ -1,14 +1,20 @@
#ifndef MXSTREAMCONTROLLER_H #ifndef MXSTREAMCONTROLLER_H
#define MXSTREAMCONTROLLER_H #define MXSTREAMCONTROLLER_H
#include "decomp.h"
#include "mxatomid.h" #include "mxatomid.h"
#include "mxcriticalsection.h" #include "mxcriticalsection.h"
#include "mxcore.h" #include "mxcore.h"
// VTABLE 0x100dc968 // VTABLE 0x100dc968
// SIZE 0x64
class MxStreamController : public MxCore class MxStreamController : public MxCore
{ {
public: public:
MxStreamController();
virtual ~MxStreamController() override; // vtable+0x0
// OFFSET: LEGO1 0x100c0f10 // OFFSET: LEGO1 0x100c0f10
inline virtual const char *ClassName() const override // vtable+0xc inline virtual const char *ClassName() const override // vtable+0xc
{ {
@ -22,12 +28,15 @@ class MxStreamController : public MxCore
return !strcmp(name, MxStreamController::ClassName()) || MxCore::IsA(name); return !strcmp(name, MxStreamController::ClassName()) || MxCore::IsA(name);
} }
MxBool IsStillInUse(); virtual MxResult Open(const char *p_filename); // vtable+0x14
MxBool CanBeDeleted();
MxCriticalSection m_criticalSection; MxCriticalSection m_criticalSection;
MxAtomId atom; MxAtomId atom;
int m_unk28; int m_unk28;
int m_unk2c; int m_unk2c;
undefined m_unk30[0x34];
}; };
#endif // MXSTREAMCONTROLLER_H #endif // MXSTREAMCONTROLLER_H