mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
implement a few mxstream* methods (#252)
* commit code * commit code * Update mxdiskstreamprovider.cpp * Update mxstreamprovider.h * improve match + add html file to gitignore * improve match of MxRAMStreamController::Open * MxDiskStreamController::Open * Match some functions, relocate m_target to `MxThread` --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
class MxCore;
|
||||
|
||||
// VTABLE 0x100dc860
|
||||
class MxThread {
|
||||
public:
|
||||
// Note: Comes before virtual destructor
|
||||
@@ -34,24 +35,22 @@ private:
|
||||
MxU32 m_threadId;
|
||||
MxBool m_running;
|
||||
MxSemaphore m_semaphore;
|
||||
|
||||
protected:
|
||||
MxCore* m_target;
|
||||
};
|
||||
|
||||
// VTABLE 0x100dc6d8
|
||||
class MxTickleThread : public MxThread {
|
||||
public:
|
||||
MxTickleThread(MxCore* p_target, int p_frequencyMS);
|
||||
|
||||
// Unclear at this time whether this function and the m_target field are
|
||||
// actually a general "userdata" pointer in the base MxThread, but it seems
|
||||
// like the only usage is with an MxTickleThread.
|
||||
MxResult StartWithTarget(MxCore* p_target);
|
||||
|
||||
// Only inlined, no offset
|
||||
virtual ~MxTickleThread() {}
|
||||
|
||||
MxResult Run() override;
|
||||
|
||||
private:
|
||||
MxCore* m_target;
|
||||
MxS32 m_frequencyMS;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user