mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 07:28:00 -05:00
add Lego3DManager and related, fix a function signature
This commit is contained in:
parent
5c74ddc9ab
commit
30989aec9c
6 changed files with 50 additions and 12 deletions
|
@ -85,10 +85,7 @@ void Isle::close()
|
|||
InputManager()->QueueEvent(KEYDOWN, 0, 0, 0, 0x20);
|
||||
}
|
||||
|
||||
// FIXME: Untangle
|
||||
//VideoManager()->GetViewManager()->RemoveAll(NULL);
|
||||
//ViewManager::RemoveAll
|
||||
// (*(ViewManager **)(*(int *)(*(int *)(pLVar4 + 0x68) + 8) + 0x88), NULL);
|
||||
VideoManager()->Get3DManager()->GetLego3DView()->GetViewManager()->RemoveAll(NULL);
|
||||
|
||||
long local_88 = 0;
|
||||
Lego()->RemoveWorld(ds.m_atomId, local_88);
|
||||
|
@ -102,7 +99,7 @@ void Isle::close()
|
|||
} while (lVar8 == 0);
|
||||
|
||||
while (Lego()) {
|
||||
if (Lego()->vtable28(ds) != 0) {
|
||||
if (Lego()->vtable28(ds) != MX_FALSE) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
17
LEGO1/lego3dmanager.h
Executable file
17
LEGO1/lego3dmanager.h
Executable file
|
@ -0,0 +1,17 @@
|
|||
#ifndef LEGO3DMANAGER_H
|
||||
#define LEGO3DMANAGER_H
|
||||
|
||||
#include "lego3dview.h"
|
||||
|
||||
class Lego3DManager
|
||||
{
|
||||
public:
|
||||
inline Lego3DView *GetLego3DView() { return this->m_3dView; }
|
||||
|
||||
private:
|
||||
int m_unk00;
|
||||
int m_unk04;
|
||||
Lego3DView *m_3dView;
|
||||
};
|
||||
|
||||
#endif // LEGO3DMANAGER_H
|
16
LEGO1/lego3dview.h
Executable file
16
LEGO1/lego3dview.h
Executable file
|
@ -0,0 +1,16 @@
|
|||
#ifndef LEGO3DVIEW_H
|
||||
#define LEGO3DVIEW_H
|
||||
|
||||
#include "viewmanager.h"
|
||||
|
||||
class Lego3DView
|
||||
{
|
||||
public:
|
||||
inline ViewManager *GetViewManager() { return this->m_viewManager; }
|
||||
|
||||
private:
|
||||
char unknown[0x88];
|
||||
ViewManager *m_viewManager;
|
||||
};
|
||||
|
||||
#endif // LEGO3DVIEW_H
|
|
@ -11,3 +11,8 @@ LegoOmni *Lego()
|
|||
{
|
||||
return LegoOmni::GetInstance();
|
||||
}
|
||||
|
||||
LegoVideoManager *VideoManager()
|
||||
{
|
||||
return LegoOmni::GetInstance()->GetVideoManager();
|
||||
}
|
|
@ -28,6 +28,7 @@ class MxMusicManager;
|
|||
class MxNotificationManager;
|
||||
class MxSoundManager;
|
||||
|
||||
// class LegoOmni : public MxOmni
|
||||
class LegoOmni
|
||||
{
|
||||
public:
|
||||
|
@ -48,7 +49,7 @@ class LegoOmni
|
|||
virtual void vtable1c();
|
||||
virtual void vtable20();
|
||||
virtual void vtable24(MxDSAction &ds);
|
||||
virtual int vtable28(MxDSAction &ds);
|
||||
virtual MxBool vtable28(MxDSAction &ds);
|
||||
virtual void vtable2c();
|
||||
virtual void vtable30();
|
||||
virtual void vtable34();
|
||||
|
@ -56,6 +57,7 @@ class LegoOmni
|
|||
virtual void vtable3c();
|
||||
virtual unsigned char vtable40();
|
||||
|
||||
LegoVideoManager *GetVideoManager() { return m_videoMgr; }
|
||||
LegoInputManager *GetInputManager() { return m_inputMgr; }
|
||||
|
||||
private:
|
||||
|
@ -69,7 +71,7 @@ class LegoOmni
|
|||
int m_unk20;
|
||||
int m_unk24;
|
||||
int m_unk28;
|
||||
int m_unk2c;
|
||||
LegoVideoManager *m_videoMgr;
|
||||
int m_unk30;
|
||||
int m_unk34;
|
||||
int m_unk38;
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
#ifndef LEGOVIDEOMANAGER_H
|
||||
#define LEGOVIDEOMANAGER_H
|
||||
|
||||
#include "lego3dmanager.h"
|
||||
|
||||
// class LegoVideoManager : public MxVideoManager
|
||||
class LegoVideoManager
|
||||
{
|
||||
public:
|
||||
__declspec(dllexport) int EnableRMDevice();
|
||||
|
||||
__declspec(dllexport) int DisableRMDevice();
|
||||
|
||||
__declspec(dllexport) void EnableFullScreenMovie(unsigned char a, unsigned char b);
|
||||
|
||||
__declspec(dllexport) void MoveCursor(int x, int y);
|
||||
|
||||
inline Lego3DManager *Get3DManager() { return this->m_3dManager; }
|
||||
|
||||
int m_unk00;
|
||||
int m_unk04;
|
||||
int m_unk08;
|
||||
|
@ -38,11 +40,10 @@ class LegoVideoManager
|
|||
int m_unk5c;
|
||||
int m_unk60;
|
||||
int m_unk64;
|
||||
int m_unk68;
|
||||
Lego3DManager *m_3dManager;
|
||||
int m_unk6c;
|
||||
int m_unk70;
|
||||
int *m_unk74;
|
||||
|
||||
};
|
||||
|
||||
#endif // LEGOVIDEOMANAGER_H
|
||||
|
|
Loading…
Reference in a new issue