reorganized repo, implemented mxcore

This commit is contained in:
itsmattkc 2023-05-05 02:54:17 -07:00
parent 1690784a8b
commit d4e2fb8d8a
54 changed files with 958 additions and 243 deletions

View file

@ -1,10 +1,10 @@
#include "isle.h" #include "isle.h"
#include "define.h" #include "define.h"
#include "../lib/legoomni.h" #include "legoomni.h"
#include "../lib/mxdirectdraw.h" #include "mxdirectdraw.h"
#include "../lib/mxdsaction.h" #include "mxdsaction.h"
#include "../lib/mxomni.h" #include "mxomni.h"
#include "res/resource.h" #include "res/resource.h"
RECT windowRect = {0, 0, 640, 480}; RECT windowRect = {0, 0, 640, 480};

View file

@ -3,8 +3,8 @@
#include <Windows.h> #include <Windows.h>
#include "../lib/define.h" #include "mxresult.h"
#include "../lib/mxvideoparam.h" #include "mxvideoparam.h"
class Isle class Isle
{ {

View file

@ -3,7 +3,7 @@
#include "define.h" #include "define.h"
#include "isle.h" #include "isle.h"
#include "../lib/legoomni.h" #include "legoomni.h"
BOOL findExistingInstance(void) BOOL findExistingInstance(void)
{ {
@ -31,6 +31,9 @@ BOOL startDirectSound(void)
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) 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 // Look for another instance, if we find one, bring it to the foreground instead
if (!findExistingInstance()) { if (!findExistingInstance()) {
return 0; return 0;

View file

Before

Width:  |  Height:  |  Size: 326 B

After

Width:  |  Height:  |  Size: 326 B

View file

Before

Width:  |  Height:  |  Size: 326 B

After

Width:  |  Height:  |  Size: 326 B

View file

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

View file

Before

Width:  |  Height:  |  Size: 326 B

After

Width:  |  Height:  |  Size: 326 B

6
LEGO1/dllmain.cpp Normal file
View 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
View file

@ -0,0 +1,6 @@
#ifndef MXBOOL_H
#define MXBOOL_H
typedef unsigned char MxBool;
#endif // MXBOOL_H

35
LEGO1/mxcore.cpp Normal file
View 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
View 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

View file

@ -1,8 +1,8 @@
#ifndef MX_DEFINE #ifndef MXRESULT_H
#define MX_DEFINE #define MXRESULT_H
typedef unsigned long MxResult; typedef unsigned long MxResult;
const MxResult SUCCESS = 0; const MxResult SUCCESS = 0;
const MxResult FAILURE = 0xFFFFFFFFL; const MxResult FAILURE = 0xFFFFFFFFL;
#endif // MX_DEFINE #endif // MXRESULT_H

1094
isle.mak

File diff suppressed because it is too large Load diff

BIN
isle.mdp

Binary file not shown.

View file

@ -1,14 +0,0 @@
#ifndef MXCORE_H
#define MXCORE_H
class MxCore
{
public:
virtual ~MxCore();
private:
unsigned int m_id;
};
#endif // MXCORE_H