mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-11 18:51:16 +00:00
Implement a few Mx* functions / add data types
This commit is contained in:
parent
6843216dfa
commit
e3fb6a2144
5
LEGO1/mxdsfile.cpp
Normal file
5
LEGO1/mxdsfile.cpp
Normal file
@ -0,0 +1,5 @@
|
||||
#include "mxdsfile.h"
|
||||
|
||||
unsigned long MxDSFile::GetBufferSize() {
|
||||
return this->m_buffersize;
|
||||
}
|
||||
@ -12,6 +12,9 @@ class MxDSFile
|
||||
__declspec(dllexport) virtual long Open(unsigned long);
|
||||
__declspec(dllexport) virtual long Read(unsigned char *,unsigned long);
|
||||
__declspec(dllexport) virtual long Seek(long,int);
|
||||
private:
|
||||
char m_unknown[0x70];
|
||||
unsigned long m_buffersize;
|
||||
};
|
||||
|
||||
#endif // MXDSFILE_H
|
||||
|
||||
8
LEGO1/mxomni.cpp
Normal file
8
LEGO1/mxomni.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
#include "mxomni.h"
|
||||
|
||||
MxOmni* MxOmni::m_instance = NULL;
|
||||
|
||||
MxOmni *MxOmni::GetInstance()
|
||||
{
|
||||
return m_instance;
|
||||
}
|
||||
@ -1,6 +1,10 @@
|
||||
#ifndef MXOMNI_H
|
||||
#define MXOMNI_H
|
||||
|
||||
#include "mxvariabletable.h"
|
||||
#include "mxticklemanager.h"
|
||||
#include "legoomni.h"
|
||||
|
||||
class MxOmni
|
||||
{
|
||||
public:
|
||||
@ -12,6 +16,17 @@ class MxOmni
|
||||
__declspec(dllexport) static void SetCD(const char *s);
|
||||
__declspec(dllexport) static void SetHD(const char *s);
|
||||
__declspec(dllexport) static void SetSound3D(unsigned char);
|
||||
private:
|
||||
static MxOmni* m_instance; // INCORRECT, PLACEHOLDER
|
||||
char m_unknown[0x10];
|
||||
MxVariableTable* m_variabletable; //0x20
|
||||
MxTickleManager* m_ticklemanager; //0x24
|
||||
MxNotificationManager* m_notificationmanager; //0x28
|
||||
char m_unknown2[0x4]; //0x2C
|
||||
MxSoundManager* m_soundmanager; //0x30
|
||||
MxMusicManager* m_musicmanager; //0x34
|
||||
MxEventManager* m_eventmanager; //0x38
|
||||
MxTimer* m_timer; //0x3C
|
||||
MxStreamer* m_streamer; //0x40
|
||||
};
|
||||
|
||||
#endif // MXOMNI_H
|
||||
|
||||
Loading…
Reference in New Issue
Block a user