mirror of
https://github.com/isledecomp/isle.git
synced 2025-04-21 11:00:52 -04:00
reorganized repo, implemented mxcore
This commit is contained in:
parent
1690784a8b
commit
d4e2fb8d8a
54 changed files with 958 additions and 243 deletions
ISLE
LEGO1
dllmain.cpplegoanimationmanager.hlegobuildingmanager.hlegogamestate.hlegoinputmanager.hlegomodelpresenter.hlegoomni.hlegopartpresenter.hlegoroi.hlegovideomanager.hlegoworldpresenter.hmxatomid.hmxbackgroundaudiomanager.hmxbitmap.hmxbool.hmxcore.cppmxcore.hmxdirectdraw.hmxdsaction.hmxdsfile.hmxomni.hmxomnicreateflags.hmxomnicreateparam.hmxomnicreateparambase.cppmxomnicreateparambase.hmxpalette.hmxrect32.hmxresult.hmxstreamcontroller.hmxstreamer.hmxstring.hmxticklemanager.hmxtimer.hmxtransitionmanager.hmxvariabletable.hmxvideoparam.hmxvideoparamflags.h
isle.makisle.mdplib
|
@ -1,10 +1,10 @@
|
|||
#include "isle.h"
|
||||
|
||||
#include "define.h"
|
||||
#include "../lib/legoomni.h"
|
||||
#include "../lib/mxdirectdraw.h"
|
||||
#include "../lib/mxdsaction.h"
|
||||
#include "../lib/mxomni.h"
|
||||
#include "legoomni.h"
|
||||
#include "mxdirectdraw.h"
|
||||
#include "mxdsaction.h"
|
||||
#include "mxomni.h"
|
||||
#include "res/resource.h"
|
||||
|
||||
RECT windowRect = {0, 0, 640, 480};
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
#include <Windows.h>
|
||||
|
||||
#include "../lib/define.h"
|
||||
#include "../lib/mxvideoparam.h"
|
||||
#include "mxresult.h"
|
||||
#include "mxvideoparam.h"
|
||||
|
||||
class Isle
|
||||
{
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "define.h"
|
||||
#include "isle.h"
|
||||
#include "../lib/legoomni.h"
|
||||
#include "legoomni.h"
|
||||
|
||||
BOOL findExistingInstance(void)
|
||||
{
|
||||
|
@ -31,6 +31,9 @@ BOOL startDirectSound(void)
|
|||
|
||||
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
|
||||
{
|
||||
// TEMP: Load our recompiled library if available
|
||||
LoadLibraryA("LEGO2");
|
||||
|
||||
// Look for another instance, if we find one, bring it to the foreground instead
|
||||
if (!findExistingInstance()) {
|
||||
return 0;
|
Before (image error) Size: 326 B After (image error) Size: 326 B |
Before (image error) Size: 326 B After (image error) Size: 326 B |
Before (image error) Size: 3.5 KiB After (image error) Size: 3.5 KiB |
Binary file not shown.
Before (image error) Size: 326 B After (image error) Size: 326 B |
6
LEGO1/dllmain.cpp
Normal file
6
LEGO1/dllmain.cpp
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include <Windows.h>
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
6
LEGO1/mxbool.h
Normal file
6
LEGO1/mxbool.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
#ifndef MXBOOL_H
|
||||
#define MXBOOL_H
|
||||
|
||||
typedef unsigned char MxBool;
|
||||
|
||||
#endif // MXBOOL_H
|
35
LEGO1/mxcore.cpp
Normal file
35
LEGO1/mxcore.cpp
Normal file
|
@ -0,0 +1,35 @@
|
|||
#include "mxcore.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
unsigned int g_mxcoreCount = 0;
|
||||
|
||||
MxCore::MxCore()
|
||||
{
|
||||
m_id = g_mxcoreCount;
|
||||
g_mxcoreCount++;
|
||||
}
|
||||
|
||||
MxCore::~MxCore()
|
||||
{
|
||||
}
|
||||
|
||||
long MxCore::Notify(MxParam &p)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
long MxCore::FUN_10001f70()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *MxCore::GetClassName() const
|
||||
{
|
||||
return "MxCore";
|
||||
}
|
||||
|
||||
MxBool MxCore::IsClass(const char *name) const
|
||||
{
|
||||
return strcmp(name, "MxCore") == 0;
|
||||
}
|
23
LEGO1/mxcore.h
Normal file
23
LEGO1/mxcore.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#ifndef MXCORE_H
|
||||
#define MXCORE_H
|
||||
|
||||
#include "mxbool.h"
|
||||
|
||||
class MxParam;
|
||||
|
||||
class MxCore
|
||||
{
|
||||
public:
|
||||
__declspec(dllexport) MxCore();
|
||||
__declspec(dllexport) virtual ~MxCore();
|
||||
__declspec(dllexport) virtual long Notify(MxParam &p);
|
||||
virtual long FUN_10001f70();
|
||||
virtual const char *GetClassName() const;
|
||||
virtual MxBool IsClass(const char *name) const;
|
||||
|
||||
private:
|
||||
unsigned int m_id;
|
||||
|
||||
};
|
||||
|
||||
#endif // MXCORE_H
|
|
@ -1,8 +1,8 @@
|
|||
#ifndef MX_DEFINE
|
||||
#define MX_DEFINE
|
||||
#ifndef MXRESULT_H
|
||||
#define MXRESULT_H
|
||||
|
||||
typedef unsigned long MxResult;
|
||||
const MxResult SUCCESS = 0;
|
||||
const MxResult FAILURE = 0xFFFFFFFFL;
|
||||
|
||||
#endif // MX_DEFINE
|
||||
#endif // MXRESULT_H
|
BIN
isle.mdp
BIN
isle.mdp
Binary file not shown.
14
lib/mxcore.h
14
lib/mxcore.h
|
@ -1,14 +0,0 @@
|
|||
#ifndef MXCORE_H
|
||||
#define MXCORE_H
|
||||
|
||||
class MxCore
|
||||
{
|
||||
public:
|
||||
virtual ~MxCore();
|
||||
|
||||
private:
|
||||
unsigned int m_id;
|
||||
|
||||
};
|
||||
|
||||
#endif // MXCORE_H
|
Loading…
Add table
Add a link
Reference in a new issue