More globals

This commit is contained in:
Christian Semmler
2023-11-30 09:39:07 -05:00
parent 47b19f91e5
commit 835630bfb1
37 changed files with 51 additions and 51 deletions

View File

@@ -1,6 +1,6 @@
#include "define.h" #include "define.h"
// 0x1010141c // GLOBAL: LEGO1 0x1010141c
MxU32 g_mxcoreCount[101] = {0, -6643, -5643, -5058, -4643, -4321, -4058, -3836, -3643, -3473, -3321, -3184, -3058, MxU32 g_mxcoreCount[101] = {0, -6643, -5643, -5058, -4643, -4321, -4058, -3836, -3643, -3473, -3321, -3184, -3058,
-2943, -2836, -2736, -2643, -2556, -2473, -2395, -2321, -2251, -2184, -2120, -2058, -2000, -2943, -2836, -2736, -2643, -2556, -2473, -2395, -2321, -2251, -2184, -2120, -2058, -2000,
-1943, -1888, -1836, -1785, -1736, -1689, -1643, -1599, -1556, -1514, -1473, -1434, -1395, -1943, -1888, -1836, -1785, -1736, -1689, -1643, -1599, -1556, -1514, -1473, -1434, -1395,
@@ -10,17 +10,17 @@ MxU32 g_mxcoreCount[101] = {0, -6643, -5643, -5058, -4643, -4321, -4058, -38
-358, -340, -321, -304, -286, -268, -251, -234, -217, -200, -184, -168, -152, -358, -340, -321, -304, -286, -268, -251, -234, -217, -200, -184, -168, -152,
-136, -120, -104, -89, -74, -58, -43, -29, -14, 0}; -136, -120, -104, -89, -74, -58, -43, -29, -14, 0};
// 0x10101eac // GLOBAL: LEGO1 0x10101eac
const char* g_parseExtraTokens = ":;"; const char* g_parseExtraTokens = ":;";
// 0x10101edc // GLOBAL: LEGO1 0x10101edc
const char* g_strWORLD = "WORLD"; const char* g_strWORLD = "WORLD";
// 0x10101f20 // GLOBAL: LEGO1 0x10101f20
const char* g_strSOUND = "SOUND"; const char* g_strSOUND = "SOUND";
// 0x10102040 // GLOBAL: LEGO1 0x10102040
const char* g_strACTION = "ACTION"; const char* g_strACTION = "ACTION";
// 0x101020cc // GLOBAL: LEGO1 0x101020cc
const char* g_strVISIBILITY = "VISIBILITY"; const char* g_strVISIBILITY = "VISIBILITY";

View File

@@ -106,7 +106,7 @@ MxAtomId* g_nocdSourceName = NULL;
// GLOBAL: LEGO1 0x100f6718 // GLOBAL: LEGO1 0x100f6718
const char* g_current = "current"; const char* g_current = "current";
// 0x101020e8 // GLOBAL: LEGO1 0x101020e8
void (*g_omniUserMessage)(const char*, int); void (*g_omniUserMessage)(const char*, int);
// FUNCTION: LEGO1 0x10015700 // FUNCTION: LEGO1 0x10015700

View File

@@ -14,7 +14,7 @@ typedef struct {
// GLOBAL: LEGO1 0x100dbe28 // GLOBAL: LEGO1 0x100dbe28
const double g_normalizeByteToFloat = 1.0 / 255; const double g_normalizeByteToFloat = 1.0 / 255;
// 0x101011b0 // GLOBAL: LEGO1 0x101011b0
ROIColorAlias g_roiColorAliases[22] = { ROIColorAlias g_roiColorAliases[22] = {
{"lego black", 0x21, 0x21, 0x21, 0}, {"lego black f", 0x21, 0x21, 0x21, 0}, {"lego black", 0x21, 0x21, 0x21, 0}, {"lego black f", 0x21, 0x21, 0x21, 0},
{"lego black flat", 0x21, 0x21, 0x21, 0}, {"lego blue", 0x00, 0x54, 0x8c, 0}, {"lego black flat", 0x21, 0x21, 0x21, 0}, {"lego blue", 0x00, 0x54, 0x8c, 0},
@@ -29,10 +29,10 @@ ROIColorAlias g_roiColorAliases[22] = {
{"lego yellow", 0xff, 0xb9, 0x00, 0}, {"lego yellow flat", 0xff, 0xb9, 0x00, 0}, {"lego yellow", 0xff, 0xb9, 0x00, 0}, {"lego yellow flat", 0xff, 0xb9, 0x00, 0},
}; };
// 0x10101368 // GLOBAL: LEGO1 0x10101368
MxS32 g_roiConfig = 100; MxS32 g_roiConfig = 100;
// 0x101013ac // GLOBAL: LEGO1 0x101013ac
ROIHandler g_someHandlerFunction = NULL; ROIHandler g_someHandlerFunction = NULL;
// FUNCTION: LEGO1 0x100a81c0 // FUNCTION: LEGO1 0x100a81c0

View File

@@ -6,7 +6,7 @@
DECOMP_SIZE_ASSERT(MxCriticalSection, 0x1c); DECOMP_SIZE_ASSERT(MxCriticalSection, 0x1c);
// 0x10101e78 // GLOBAL: LEGO1 0x10101e78
int g_useMutex = 0; int g_useMutex = 0;
// FUNCTION: LEGO1 0x100b6d20 // FUNCTION: LEGO1 0x100b6d20

View File

@@ -891,7 +891,7 @@ int MxDirectDraw::FlipToGDISurface()
// FUNCTION: LEGO1 0x1009e830 // FUNCTION: LEGO1 0x1009e830
void MxDirectDraw::Error(const char* message, int error) void MxDirectDraw::Error(const char* message, int error)
{ {
// 0x10100c70 // GLOBAL: LEGO1 0x10100c70
static BOOL isInsideError = FALSE; static BOOL isInsideError = FALSE;
if (!isInsideError) { if (!isInsideError) {
isInsideError = TRUE; isInsideError = TRUE;

View File

@@ -28,7 +28,7 @@ public:
// FUNCTION: LEGO1 0x100c7360 // FUNCTION: LEGO1 0x100c7360
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x10102144 // GLOBAL: LEGO1 0x10102144
return "MxDiskStreamController"; return "MxDiskStreamController";
} }

View File

@@ -32,7 +32,7 @@ public:
// FUNCTION: LEGO1 0x100d1160 // FUNCTION: LEGO1 0x100d1160
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x1010287c // GLOBAL: LEGO1 0x1010287c
return "MxDiskStreamProvider"; return "MxDiskStreamProvider";
} }

View File

@@ -32,7 +32,7 @@ public:
// FUNCTION: LEGO1 0x100ad980 // FUNCTION: LEGO1 0x100ad980
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x101013f4 // GLOBAL: LEGO1 0x101013f4
return "MxDSAction"; return "MxDSAction";
} }

View File

@@ -16,7 +16,7 @@ public:
// FUNCTION: LEGO1 0x100c9060 // FUNCTION: LEGO1 0x100c9060
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x101025d8 // GLOBAL: LEGO1 0x101025d8
return "MxDSAnim"; return "MxDSAnim";
} }

View File

@@ -23,7 +23,7 @@ public:
// FUNCTION: LEGO1 0x100be0c0 // FUNCTION: LEGO1 0x100be0c0
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x10101e6c // GLOBAL: LEGO1 0x10101e6c
return "MxDSChunk"; return "MxDSChunk";
} }

View File

@@ -14,7 +14,7 @@ public:
// FUNCTION: LEGO1 0x100c9660 // FUNCTION: LEGO1 0x100c9660
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x101025f0 // GLOBAL: LEGO1 0x101025f0
return "MxDSEvent"; return "MxDSEvent";
} }

View File

@@ -15,7 +15,7 @@ public:
// FUNCTION: LEGO1 0x100c0120 // FUNCTION: LEGO1 0x100c0120
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x10102594 // GLOBAL: LEGO1 0x10102594
return "MxDSFile"; return "MxDSFile";
} }

View File

@@ -17,7 +17,7 @@ public:
// FUNCTION: LEGO1 0x100c9f50 // FUNCTION: LEGO1 0x100c9f50
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x10101dbc // GLOBAL: LEGO1 0x10101dbc
return "MxDSMultiAction"; return "MxDSMultiAction";
} }

View File

@@ -15,7 +15,7 @@ public:
// FUNCTION: LEGO1 0x100c88e0 // FUNCTION: LEGO1 0x100c88e0
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x101025c4 // GLOBAL: LEGO1 0x101025c4
return "MxDSObjectAction"; return "MxDSObjectAction";
} }

View File

@@ -16,7 +16,7 @@ public:
// FUNCTION: LEGO1 0x100caf00 // FUNCTION: LEGO1 0x100caf00
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x10102608 // GLOBAL: LEGO1 0x10102608
return "MxDSParallelAction"; return "MxDSParallelAction";
} }

View File

@@ -18,7 +18,7 @@ public:
// FUNCTION: LEGO1 0x100cb6f0 // FUNCTION: LEGO1 0x100cb6f0
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x1010261c // GLOBAL: LEGO1 0x1010261c
return "MxDSSelectAction"; return "MxDSSelectAction";
} }

View File

@@ -16,7 +16,7 @@ public:
// FUNCTION: LEGO1 0x100c9330 // FUNCTION: LEGO1 0x100c9330
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x101025e4 // GLOBAL: LEGO1 0x101025e4
return "MxDSSound"; return "MxDSSound";
} }

View File

@@ -13,7 +13,7 @@ public:
// FUNCTION: LEGO1 0x100c0010 // FUNCTION: LEGO1 0x100c0010
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x10102588 // GLOBAL: LEGO1 0x10102588
return "MxDSSource"; return "MxDSSource";
} }

View File

@@ -16,7 +16,7 @@ public:
// FUNCTION: LEGO1 0x100c9930 // FUNCTION: LEGO1 0x100c9930
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x101025fc // GLOBAL: LEGO1 0x101025fc
return "MxDSStill"; return "MxDSStill";
} }

View File

@@ -18,7 +18,7 @@ public:
// FUNCTION: LEGO1 0x100b7d50 // FUNCTION: LEGO1 0x100b7d50
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x101020f8 // GLOBAL: LEGO1 0x101020f8
return "MxDSSubscriber"; return "MxDSSubscriber";
} }

View File

@@ -14,7 +14,7 @@ public:
// FUNCTION: LEGO1 0x100c2c30 // FUNCTION: LEGO1 0x100c2c30
inline virtual const char* ClassName() const override // vtable+0xc inline virtual const char* ClassName() const override // vtable+0xc
{ {
// 0x10101dcc // GLOBAL: LEGO1 0x10101dcc
return "MxEventPresenter"; return "MxEventPresenter";
} }

View File

@@ -14,7 +14,7 @@ public:
// FUNCTION: LEGO1 0x100b4380 // FUNCTION: LEGO1 0x100b4380
inline virtual const char* ClassName() const override // vtable+0xc inline virtual const char* ClassName() const override // vtable+0xc
{ {
// 0x10101e20 // GLOBAL: LEGO1 0x10101e20
return "MxLoopingFlcPresenter"; return "MxLoopingFlcPresenter";
} }

View File

@@ -9,7 +9,7 @@ class MxLoopingMIDIPresenter : public MxMIDIPresenter {
public: public:
inline virtual const char* ClassName() const override // vtable+0xc inline virtual const char* ClassName() const override // vtable+0xc
{ {
// 0x10101de0 // GLOBAL: LEGO1 0x10101de0
return "MxLoopingMIDIPresenter"; return "MxLoopingMIDIPresenter";
} }

View File

@@ -14,7 +14,7 @@ public:
// FUNCTION: LEGO1 0x100b4920 // FUNCTION: LEGO1 0x100b4920
inline virtual const char* ClassName() const override // vtable+0xc inline virtual const char* ClassName() const override // vtable+0xc
{ {
// 0x10101e08 // GLOBAL: LEGO1 0x10101e08
return "MxLoopingSmkPresenter"; return "MxLoopingSmkPresenter";
} }

View File

@@ -14,7 +14,7 @@ public:
// FUNCTION: LEGO1 0x100c2650 // FUNCTION: LEGO1 0x100c2650
inline virtual const char* ClassName() const override // vtable+0xc inline virtual const char* ClassName() const override // vtable+0xc
{ {
// 0x10101df8 // GLOBAL: LEGO1 0x10101df8
return "MxMIDIPresenter"; return "MxMIDIPresenter";
} }

View File

@@ -13,7 +13,7 @@ public:
// FUNCTION: LEGO1 0x100c23a0 // FUNCTION: LEGO1 0x100c23a0
inline virtual const char* ClassName() const override // vtable+0xc inline virtual const char* ClassName() const override // vtable+0xc
{ {
// 0x10101e48 // GLOBAL: LEGO1 0x10101e48
return "MxMusicPresenter"; return "MxMusicPresenter";
} }

View File

@@ -18,7 +18,7 @@ public:
// FUNCTION: LEGO1 0x100c1900 // FUNCTION: LEGO1 0x100c1900
inline virtual const char* ClassName() const override // vtable+0xc inline virtual const char* ClassName() const override // vtable+0xc
{ {
// 0x101025a0 // GLOBAL: LEGO1 0x101025a0
return "MxNextActionDataStart"; return "MxNextActionDataStart";
} }

View File

@@ -13,16 +13,16 @@
#include "mxtimer.h" #include "mxtimer.h"
#include "mxvideomanager.h" #include "mxvideomanager.h"
// 0x101015b8 // GLOBAL: LEGO1 0x101015b8
char g_hdPath[1024]; char g_hdPath[1024];
// 0x101019b8 // GLOBAL: LEGO1 0x101019b8
char g_cdPath[1024]; char g_cdPath[1024];
// 0x10101db8 // GLOBAL: LEGO1 0x10101db8
MxBool g_use3dSound; MxBool g_use3dSound;
// 0x101015b0 // GLOBAL: LEGO1 0x101015b0
MxOmni* MxOmni::g_instance = NULL; MxOmni* MxOmni::g_instance = NULL;
// FUNCTION: LEGO1 0x100159e0 // FUNCTION: LEGO1 0x100159e0

View File

@@ -13,7 +13,7 @@ public:
// FUNCTION: LEGO1 0x100b9430 // FUNCTION: LEGO1 0x100b9430
inline virtual const char* ClassName() const override // vtable+0xc inline virtual const char* ClassName() const override // vtable+0xc
{ {
// 0x10102130 // GLOBAL: LEGO1 0x10102130
return "MxRAMStreamController"; return "MxRAMStreamController";
} }

View File

@@ -12,7 +12,7 @@ public:
// FUNCTION: LEGO1 0x100d0970 // FUNCTION: LEGO1 0x100d0970
inline virtual const char* ClassName() const override // vtable+0xc inline virtual const char* ClassName() const override // vtable+0xc
{ {
// 0x10102864 // GLOBAL: LEGO1 0x10102864
return "MxRAMStreamProvider"; return "MxRAMStreamProvider";
} }

View File

@@ -16,7 +16,7 @@ public:
// FUNCTION: LEGO1 0x100b3730 // FUNCTION: LEGO1 0x100b3730
inline virtual const char* ClassName() const override // vtable+0xc inline virtual const char* ClassName() const override // vtable+0xc
{ {
// 0x10101e38 // GLOBAL: LEGO1 0x10101e38
return "MxSmkPresenter"; return "MxSmkPresenter";
} }

View File

@@ -6,7 +6,7 @@
DECOMP_SIZE_ASSERT(MxStillPresenter, 0x6c); DECOMP_SIZE_ASSERT(MxStillPresenter, 0x6c);
// 0x10101eb0 // GLOBAL: LEGO1 0x10101eb0
const char* g_strBMP_ISMAP = "BMP_ISMAP"; const char* g_strBMP_ISMAP = "BMP_ISMAP";
// FUNCTION: LEGO1 0x10043550 // FUNCTION: LEGO1 0x10043550

View File

@@ -12,7 +12,7 @@ public:
// FUNCTION: LEGO1 0x100b1fe0 // FUNCTION: LEGO1 0x100b1fe0
inline virtual const char* ClassName() const override // vtable+0xc inline virtual const char* ClassName() const override // vtable+0xc
{ {
// 0x10101e5c // GLOBAL: LEGO1 0x10101e5c
return "MxStreamChunk"; return "MxStreamChunk";
} }

View File

@@ -22,7 +22,7 @@ public:
// FUNCTION: LEGO1 0x100c0f10 // FUNCTION: LEGO1 0x100c0f10
inline virtual const char* ClassName() const override // vtable+0xc inline virtual const char* ClassName() const override // vtable+0xc
{ {
// 0x10102130 // GLOBAL: LEGO1 0x10102130
return "MxStreamController"; return "MxStreamController";
} }

View File

@@ -78,7 +78,7 @@ public:
// FUNCTION: LEGO1 0x100b9000 // FUNCTION: LEGO1 0x100b9000
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
// 0x1010210c // GLOBAL: LEGO1 0x1010210c
return "MxStreamer"; return "MxStreamer";
} }

View File

@@ -2,10 +2,10 @@
#include <windows.h> #include <windows.h>
// 0x10101414 // GLOBAL: LEGO1 0x10101414
MxLong MxTimer::s_LastTimeCalculated = 0; MxLong MxTimer::s_LastTimeCalculated = 0;
// 0x10101418 // GLOBAL: LEGO1 0x10101418
MxLong MxTimer::s_LastTimeTimerStarted = 0; MxLong MxTimer::s_LastTimeTimerStarted = 0;
// FUNCTION: LEGO1 0x100ae060 // FUNCTION: LEGO1 0x100ae060

View File

@@ -2,16 +2,16 @@
#include <math.h> #include <math.h>
// 0x10109598 // GLOBAL: LEGO1 0x10109598
float g_userMaxLodPower; float g_userMaxLodPower;
// 0x10101044 // GLOBAL: LEGO1 0x10101044
float g_userMaxBase = 4.0f; float g_userMaxBase = 4.0f;
// 0x10101048 // GLOBAL: LEGO1 0x10101048
float g_userMaxLod = 3.6f; float g_userMaxLod = 3.6f;
// 0x1010104c // GLOBAL: LEGO1 0x1010104c
float g_partsThreshold = 1000.0f; float g_partsThreshold = 1000.0f;
// FUNCTION: LEGO1 0x100a5de0 // FUNCTION: LEGO1 0x100a5de0