improved accuracy of library headers

This commit is contained in:
itsmattkc 2023-04-29 20:39:01 -07:00
parent 4570487067
commit 4b10d951e5
8 changed files with 104 additions and 11 deletions

View file

@ -32,8 +32,8 @@ NULL=nul
# Begin Project # Begin Project
# PROP Target_Last_Scanned "isle - Win32 Debug" # PROP Target_Last_Scanned "isle - Win32 Debug"
CPP=cl.exe CPP=cl.exe
RSC=rc.exe
MTL=mktyplib.exe MTL=mktyplib.exe
RSC=rc.exe
!IF "$(CFG)" == "isle - Win32 Release" !IF "$(CFG)" == "isle - Win32 Release"
@ -57,6 +57,7 @@ CLEAN :
-@erase "$(INTDIR)\isle.obj" -@erase "$(INTDIR)\isle.obj"
-@erase "$(INTDIR)\isle.res" -@erase "$(INTDIR)\isle.res"
-@erase "$(INTDIR)\main.obj" -@erase "$(INTDIR)\main.obj"
-@erase "$(INTDIR)\mxomnicreateparambase.obj"
-@erase "$(OUTDIR)\isle.exe" -@erase "$(OUTDIR)\isle.exe"
"$(OUTDIR)" : "$(OUTDIR)" :
@ -92,7 +93,8 @@ LINK32_OBJS= \
"$(INTDIR)\define.obj" \ "$(INTDIR)\define.obj" \
"$(INTDIR)\isle.obj" \ "$(INTDIR)\isle.obj" \
"$(INTDIR)\isle.res" \ "$(INTDIR)\isle.res" \
"$(INTDIR)\main.obj" "$(INTDIR)\main.obj" \
"$(INTDIR)\mxomnicreateparambase.obj"
"$(OUTDIR)\isle.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) "$(OUTDIR)\isle.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
$(LINK32) @<< $(LINK32) @<<
@ -121,6 +123,7 @@ CLEAN :
-@erase "$(INTDIR)\isle.obj" -@erase "$(INTDIR)\isle.obj"
-@erase "$(INTDIR)\isle.res" -@erase "$(INTDIR)\isle.res"
-@erase "$(INTDIR)\main.obj" -@erase "$(INTDIR)\main.obj"
-@erase "$(INTDIR)\mxomnicreateparambase.obj"
-@erase "$(INTDIR)\vc40.idb" -@erase "$(INTDIR)\vc40.idb"
-@erase "$(INTDIR)\vc40.pdb" -@erase "$(INTDIR)\vc40.pdb"
-@erase "$(OUTDIR)\isle.exe" -@erase "$(OUTDIR)\isle.exe"
@ -160,7 +163,8 @@ LINK32_OBJS= \
"$(INTDIR)\define.obj" \ "$(INTDIR)\define.obj" \
"$(INTDIR)\isle.obj" \ "$(INTDIR)\isle.obj" \
"$(INTDIR)\isle.res" \ "$(INTDIR)\isle.res" \
"$(INTDIR)\main.obj" "$(INTDIR)\main.obj" \
"$(INTDIR)\mxomnicreateparambase.obj"
"$(OUTDIR)\isle.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) "$(OUTDIR)\isle.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
$(LINK32) @<< $(LINK32) @<<
@ -233,11 +237,13 @@ DEP_CPP_ISLE_=\
".\lib\legoworldpresenter.h"\ ".\lib\legoworldpresenter.h"\
".\lib\mxatomid.h"\ ".\lib\mxatomid.h"\
".\lib\mxbackgroundaudiomanager.h"\ ".\lib\mxbackgroundaudiomanager.h"\
".\lib\mxcore.h"\
".\lib\mxdirectdraw.h"\ ".\lib\mxdirectdraw.h"\
".\lib\mxdsaction.h"\ ".\lib\mxdsaction.h"\
".\lib\mxomni.h"\ ".\lib\mxomni.h"\
".\lib\mxomnicreateflags.h"\ ".\lib\mxomnicreateflags.h"\
".\lib\mxomnicreateparam.h"\ ".\lib\mxomnicreateparam.h"\
".\lib\mxomnicreateparambase.h"\
".\lib\mxpalette.h"\ ".\lib\mxpalette.h"\
".\lib\mxrect32.h"\ ".\lib\mxrect32.h"\
".\lib\mxstreamcontroller.h"\ ".\lib\mxstreamcontroller.h"\
@ -260,8 +266,39 @@ DEP_CPP_ISLE_=\
# Begin Source File # Begin Source File
SOURCE=.\app\main.cpp SOURCE=.\app\main.cpp
DEP_CPP_MAIN_=\
".\app\define.h"\
".\app\isle.h"\
".\lib\define.h"\
".\lib\legoanimationmanager.h"\
".\lib\legobuildingmanager.h"\
".\lib\legogamestate.h"\
".\lib\legoinputmanager.h"\
".\lib\legomodelpresenter.h"\
".\lib\legoomni.h"\
".\lib\legopartpresenter.h"\
".\lib\legoroi.h"\
".\lib\legovideomanager.h"\
".\lib\legoworldpresenter.h"\
".\lib\mxatomid.h"\
".\lib\mxbackgroundaudiomanager.h"\
".\lib\mxdsaction.h"\
".\lib\mxomnicreateflags.h"\
".\lib\mxomnicreateparam.h"\
".\lib\mxpalette.h"\
".\lib\mxrect32.h"\
".\lib\mxstreamcontroller.h"\
".\lib\mxstreamer.h"\
".\lib\mxstring.h"\
".\lib\mxticklemanager.h"\
".\lib\mxtimer.h"\
".\lib\mxtransitionmanager.h"\
".\lib\mxvariabletable.h"\
".\lib\mxvideoparam.h"\
".\lib\mxvideoparamflags.h"\
"$(INTDIR)\main.obj" : $(SOURCE) "$(INTDIR)" "$(INTDIR)\main.obj" : $(SOURCE) $(DEP_CPP_MAIN_) "$(INTDIR)"
$(CPP) $(CPP_PROJ) $(SOURCE) $(CPP) $(CPP_PROJ) $(SOURCE)
@ -287,6 +324,27 @@ SOURCE=.\app\res\isle.rc
!ENDIF !ENDIF
# End Source File
################################################################################
# Begin Source File
SOURCE=.\lib\mxomnicreateparambase.cpp
DEP_CPP_MXOMN=\
".\lib\mxomnicreateflags.h"\
".\lib\mxomnicreateparam.h"\
".\lib\mxomnicreateparambase.h"\
".\lib\mxpalette.h"\
".\lib\mxrect32.h"\
".\lib\mxstring.h"\
".\lib\mxvariabletable.h"\
".\lib\mxvideoparam.h"\
".\lib\mxvideoparamflags.h"\
"$(INTDIR)\mxomnicreateparambase.obj" : $(SOURCE) $(DEP_CPP_MXOMN) "$(INTDIR)"
$(CPP) $(CPP_PROJ) $(SOURCE)
# End Source File # End Source File
# End Target # End Target
# End Project # End Project

BIN
isle.mdp

Binary file not shown.

14
lib/mxcore.h Normal file
View file

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

View file

@ -4,14 +4,14 @@
#include <Windows.h> #include <Windows.h>
#include "mxomnicreateflags.h" #include "mxomnicreateflags.h"
#include "mxomnicreateparambase.h"
#include "mxstring.h" #include "mxstring.h"
#include "mxvideoparam.h" #include "mxvideoparam.h"
class MxOmniCreateParam class MxOmniCreateParam : public MxOmniCreateParamBase
{ {
public: public:
__declspec(dllexport) MxOmniCreateParam(const char *mediaPath, struct HWND__ *windowHandle, MxVideoParam &vparam, MxOmniCreateFlags flags); __declspec(dllexport) MxOmniCreateParam(const char *mediaPath, struct HWND__ *windowHandle, MxVideoParam &vparam, MxOmniCreateFlags flags);
virtual void vtable00(); virtual void vtable00();
private: private:

View file

@ -0,0 +1,6 @@
#include "mxomnicreateparam.h"
MxOmniCreateParamBase::~MxOmniCreateParamBase()
{
}

View file

@ -0,0 +1,13 @@
#ifndef MXOMNICREATEPARAMBASE_H
#define MXOMNICREATEPARAMBASE_H
// FIXME: Clearly not its real name
class MxOmniCreateParamBase
{
public:
~MxOmniCreateParamBase();
virtual void vtable00(){}
};
#endif // MXOMNICREATEPARAMBASE_H

View file

@ -1,15 +1,16 @@
#ifndef MXSTRING_H #ifndef MXSTRING_H
#define MXSTRING_H #define MXSTRING_H
class MxString #include "mxcore.h"
class MxString : public MxCore
{ {
public: public:
__declspec(dllexport) virtual ~MxString();
private: private:
int m_unk00; char *m_data;
int m_unk04; unsigned short m_length;
int m_unk08;
int m_unk0c;
}; };

View file

@ -11,6 +11,7 @@ class MxVideoParam
public: public:
__declspec(dllexport) MxVideoParam(); __declspec(dllexport) MxVideoParam();
__declspec(dllexport) MxVideoParam(MxRect32 &rect, MxPalette *pal, unsigned long p3, MxVideoParamFlags &flags); __declspec(dllexport) MxVideoParam(MxRect32 &rect, MxPalette *pal, unsigned long p3, MxVideoParamFlags &flags);
__declspec(dllexport) ~MxVideoParam();
__declspec(dllexport) void SetDeviceName(char *id); __declspec(dllexport) void SetDeviceName(char *id);