From 4b10d951e5c463d86137025dea83f6e29dd313a4 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sat, 29 Apr 2023 20:39:01 -0700 Subject: [PATCH] improved accuracy of library headers --- isle.mak | 66 +++++++++++++++++++++++++++++++--- isle.mdp | Bin 36352 -> 36864 bytes lib/mxcore.h | 14 ++++++++ lib/mxomnicreateparam.h | 4 +-- lib/mxomnicreateparambase.cpp | 6 ++++ lib/mxomnicreateparambase.h | 13 +++++++ lib/mxstring.h | 11 +++--- lib/mxvideoparam.h | 1 + 8 files changed, 104 insertions(+), 11 deletions(-) create mode 100644 lib/mxcore.h create mode 100644 lib/mxomnicreateparambase.cpp create mode 100644 lib/mxomnicreateparambase.h diff --git a/isle.mak b/isle.mak index b066ca73..90ce7420 100644 --- a/isle.mak +++ b/isle.mak @@ -32,8 +32,8 @@ NULL=nul # Begin Project # PROP Target_Last_Scanned "isle - Win32 Debug" CPP=cl.exe -RSC=rc.exe MTL=mktyplib.exe +RSC=rc.exe !IF "$(CFG)" == "isle - Win32 Release" @@ -57,6 +57,7 @@ CLEAN : -@erase "$(INTDIR)\isle.obj" -@erase "$(INTDIR)\isle.res" -@erase "$(INTDIR)\main.obj" + -@erase "$(INTDIR)\mxomnicreateparambase.obj" -@erase "$(OUTDIR)\isle.exe" "$(OUTDIR)" : @@ -92,7 +93,8 @@ LINK32_OBJS= \ "$(INTDIR)\define.obj" \ "$(INTDIR)\isle.obj" \ "$(INTDIR)\isle.res" \ - "$(INTDIR)\main.obj" + "$(INTDIR)\main.obj" \ + "$(INTDIR)\mxomnicreateparambase.obj" "$(OUTDIR)\isle.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) $(LINK32) @<< @@ -121,6 +123,7 @@ CLEAN : -@erase "$(INTDIR)\isle.obj" -@erase "$(INTDIR)\isle.res" -@erase "$(INTDIR)\main.obj" + -@erase "$(INTDIR)\mxomnicreateparambase.obj" -@erase "$(INTDIR)\vc40.idb" -@erase "$(INTDIR)\vc40.pdb" -@erase "$(OUTDIR)\isle.exe" @@ -160,7 +163,8 @@ LINK32_OBJS= \ "$(INTDIR)\define.obj" \ "$(INTDIR)\isle.obj" \ "$(INTDIR)\isle.res" \ - "$(INTDIR)\main.obj" + "$(INTDIR)\main.obj" \ + "$(INTDIR)\mxomnicreateparambase.obj" "$(OUTDIR)\isle.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) $(LINK32) @<< @@ -233,11 +237,13 @@ DEP_CPP_ISLE_=\ ".\lib\legoworldpresenter.h"\ ".\lib\mxatomid.h"\ ".\lib\mxbackgroundaudiomanager.h"\ + ".\lib\mxcore.h"\ ".\lib\mxdirectdraw.h"\ ".\lib\mxdsaction.h"\ ".\lib\mxomni.h"\ ".\lib\mxomnicreateflags.h"\ ".\lib\mxomnicreateparam.h"\ + ".\lib\mxomnicreateparambase.h"\ ".\lib\mxpalette.h"\ ".\lib\mxrect32.h"\ ".\lib\mxstreamcontroller.h"\ @@ -260,8 +266,39 @@ DEP_CPP_ISLE_=\ # Begin Source File 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) @@ -287,6 +324,27 @@ SOURCE=.\app\res\isle.rc !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 Target # End Project diff --git a/isle.mdp b/isle.mdp index 23728fd59733324aaf0f35fcf6a29cd916009321..f6af68b76c017a77edbcef4b6598604021faaca0 100644 GIT binary patch literal 36864 zcmeI4>vGdZ6vvN99PEVV>Oe~`q!fC`g_z#xg%+DoGIXXxI+ISv{jio6XB(}gSzm59=E1;ZzSfDw*0#u|D z&C>#%()WhgriVa@X2=_B+#8|M^quv}7$X`9VnXu}K&-pU&#n z+%AjVy(@#l=Acj=6s`{H`S#BCok1CU5C8!X009sHf$_GqoKmY_lAa4Y) z{+G8Ag*_ku0w4eaAn@b_u>SYt%<^=`8+3s#(wp=ay-n}XyYyb3jDs!55a_M{nPk7R zX#0HQ(#Ea`s+${kxzAaf7swfI7k<3f*b60ZNEXM9wsIThj0TIMhR5%TfLGioa-8!= z%Z&b5kz^w1i7p;plj7~9^@?&Gr#f2ai)K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ideoparam.h" -class MxOmniCreateParam +class MxOmniCreateParam : public MxOmniCreateParamBase { public: __declspec(dllexport) MxOmniCreateParam(const char *mediaPath, struct HWND__ *windowHandle, MxVideoParam &vparam, MxOmniCreateFlags flags); - virtual void vtable00(); private: diff --git a/lib/mxomnicreateparambase.cpp b/lib/mxomnicreateparambase.cpp new file mode 100644 index 00000000..fe7c5836 --- /dev/null +++ b/lib/mxomnicreateparambase.cpp @@ -0,0 +1,6 @@ +#include "mxomnicreateparam.h" + +MxOmniCreateParamBase::~MxOmniCreateParamBase() +{ + +} diff --git a/lib/mxomnicreateparambase.h b/lib/mxomnicreateparambase.h new file mode 100644 index 00000000..fee0a488 --- /dev/null +++ b/lib/mxomnicreateparambase.h @@ -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 diff --git a/lib/mxstring.h b/lib/mxstring.h index a28e446c..16878e94 100644 --- a/lib/mxstring.h +++ b/lib/mxstring.h @@ -1,15 +1,16 @@ #ifndef MXSTRING_H #define MXSTRING_H -class MxString +#include "mxcore.h" + +class MxString : public MxCore { public: + __declspec(dllexport) virtual ~MxString(); private: - int m_unk00; - int m_unk04; - int m_unk08; - int m_unk0c; + char *m_data; + unsigned short m_length; }; diff --git a/lib/mxvideoparam.h b/lib/mxvideoparam.h index c5b7199f..836b7a9d 100644 --- a/lib/mxvideoparam.h +++ b/lib/mxvideoparam.h @@ -11,6 +11,7 @@ class MxVideoParam public: __declspec(dllexport) MxVideoParam(); __declspec(dllexport) MxVideoParam(MxRect32 &rect, MxPalette *pal, unsigned long p3, MxVideoParamFlags &flags); + __declspec(dllexport) ~MxVideoParam(); __declspec(dllexport) void SetDeviceName(char *id);