mirror of
https://github.com/LostArtefacts/TR2X.git
synced 2024-12-02 19:06:47 +00:00
port WinVidFreeWindow
This commit is contained in:
parent
e5cc629d42
commit
3f1b69cd7b
@ -69,10 +69,10 @@
|
||||
</g>
|
||||
<g transform="translate(0 116)">
|
||||
<text x="0" y="7.50">Tomb2.exe progress according to the physical function order:</text>
|
||||
<text class="todo" style="font-size: 12px; " x="747" y="9"><tspan text-anchor="end"><tspan class="decompiled">42.04% (512)</tspan> · <tspan class="known">55.50% (676)</tspan> · <tspan class="todo">0% (0)</tspan> · <tspan class="unused">2.46% (30)</tspan></tspan></text>
|
||||
<text class="todo" style="font-size: 12px; " x="747" y="9"><tspan text-anchor="end"><tspan class="decompiled">42.12% (513)</tspan> · <tspan class="known">55.42% (675)</tspan> · <tspan class="todo">0% (0)</tspan> · <tspan class="unused">2.46% (30)</tspan></tspan></text>
|
||||
<g transform="translate(0 20)">
|
||||
<rect width="314.01" height="6" x="0" y="0" class="decompiled"/>
|
||||
<rect width="414.59" height="6" x="314.01" y="0" class="known"/>
|
||||
<rect width="314.62" height="6" x="0" y="0" class="decompiled"/>
|
||||
<rect width="413.98" height="6" x="314.62" y="0" class="known"/>
|
||||
<rect width="18.40" height="6" x="728.60" y="0" class="unused"/>
|
||||
</g>
|
||||
<g transform="translate(0 31)">
|
||||
@ -942,7 +942,7 @@
|
||||
<rect width="12" height="12" x="195" y="255" class="decompiled"><title>void __cdecl WinVidResizeGameWindow(HWND hWnd, int32_t edge, LPRECT rect);</title></rect>
|
||||
<rect width="12" height="12" x="210" y="255" class="decompiled"><title>bool __cdecl WinVidCheckGameWindowPalette(HWND hWnd);</title></rect>
|
||||
<rect width="12" height="12" x="225" y="255" class="decompiled"><title>bool __cdecl WinVidCreateGameWindow(void);</title></rect>
|
||||
<rect width="12" height="12" x="240" y="255" class="known"><title>void __cdecl WinVidFreeWindow(void);</title></rect>
|
||||
<rect width="12" height="12" x="240" y="255" class="decompiled"><title>void __cdecl WinVidFreeWindow(void);</title></rect>
|
||||
<rect width="12" height="12" x="255" y="255" class="known"><title>void __cdecl WinVidExitMessage(void);</title></rect>
|
||||
<rect width="12" height="12" x="270" y="255" class="known"><title>DISPLAY_ADAPTER_NODE *__cdecl WinVidGetDisplayAdapter(GUID *lpGuid);</title></rect>
|
||||
<rect width="12" height="12" x="285" y="255" class="known"><title>void __cdecl WinVidStart(void);</title></rect>
|
||||
@ -1298,10 +1298,10 @@
|
||||
</g>
|
||||
<g transform="translate(0 546)">
|
||||
<text x="0" y="7.50">Tomb2.exe progress according to the function sizes:</text>
|
||||
<text class="todo" style="font-size: 12px; " x="747" y="9"><tspan text-anchor="end"><tspan class="decompiled">39.20%</tspan> · <tspan class="known">60.47%</tspan> · <tspan class="todo">0%</tspan> · <tspan class="unused">0.33%</tspan></tspan></text>
|
||||
<text class="todo" style="font-size: 12px; " x="747" y="9"><tspan text-anchor="end"><tspan class="decompiled">39.21%</tspan> · <tspan class="known">60.46%</tspan> · <tspan class="todo">0%</tspan> · <tspan class="unused">0.33%</tspan></tspan></text>
|
||||
<g transform="translate(0 20)">
|
||||
<rect width="292.85" height="6" x="0" y="0" class="decompiled"/>
|
||||
<rect width="451.71" height="6" x="292.85" y="0" class="known"/>
|
||||
<rect width="292.92" height="6" x="0" y="0" class="decompiled"/>
|
||||
<rect width="451.64" height="6" x="292.92" y="0" class="known"/>
|
||||
<rect width="2.44" height="6" x="744.56" y="0" class="unused"/>
|
||||
</g>
|
||||
<g transform="translate(0 31)">
|
||||
@ -2370,7 +2370,7 @@
|
||||
<rect width="2.57" height="2.07" x="698.40" y="342.69" class="decompiled"><title>void __cdecl Matrix_Pop_I(void);</title></rect>
|
||||
<rect width="2.57" height="2.07" x="698.40" y="347.76" class="known"><title>void __cdecl Inv_Ring_MotionRotation(RING_INFO *ring, int16_t rotation, int16_t target);</title></rect>
|
||||
<rect width="2.57" height="2.07" x="698.40" y="352.82" class="known"><title>void __cdecl DrawMovableBlock(ITEM_INFO *item);</title></rect>
|
||||
<rect width="2.57" height="2.07" x="698.40" y="357.89" class="known"><title>void __cdecl WinVidFreeWindow(void);</title></rect>
|
||||
<rect width="2.57" height="2.07" x="698.40" y="357.89" class="decompiled"><title>void __cdecl WinVidFreeWindow(void);</title></rect>
|
||||
<rect width="2.57" height="2.07" x="698.40" y="362.95" class="decompiled"><title>bool __cdecl DInputCreate(void);</title></rect>
|
||||
<rect width="2.57" height="2.07" x="698.40" y="368.02" class="known"><title>bool __cdecl HWR_Init(void);</title></rect>
|
||||
<rect width="2.57" height="1.92" x="698.40" y="373.08" class="known"><title>void __cdecl Lara_InitialiseLoad(int16_t item_num);</title></rect>
|
||||
|
Before Width: | Height: | Size: 360 KiB After Width: | Height: | Size: 360 KiB |
@ -3054,7 +3054,7 @@ typedef struct {
|
||||
0x004467C0 0x01C0 +R void __cdecl WinVidResizeGameWindow(HWND hWnd, int32_t edge, LPRECT rect);
|
||||
0x004469A0 0x00BC +R bool __cdecl WinVidCheckGameWindowPalette(HWND hWnd);
|
||||
0x00446A60 0x00C6 +R bool __cdecl WinVidCreateGameWindow(void);
|
||||
0x00446B30 0x0022 -R void __cdecl WinVidFreeWindow(void);
|
||||
0x00446B30 0x0022 +R void __cdecl WinVidFreeWindow(void);
|
||||
0x00446B60 0x004D -R void __cdecl WinVidExitMessage(void);
|
||||
0x00446BB0 0x0048 -R DISPLAY_ADAPTER_NODE *__cdecl WinVidGetDisplayAdapter(GUID *lpGuid);
|
||||
0x00446C00 0x0374 -R void __cdecl WinVidStart(void);
|
||||
|
@ -2848,3 +2848,9 @@ bool __cdecl WinVidCreateGameWindow(void)
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void __cdecl WinVidFreeWindow(void)
|
||||
{
|
||||
WinVidExitMessage();
|
||||
UnregisterClassA(g_GameClassName, g_GameModule);
|
||||
}
|
||||
|
@ -122,3 +122,4 @@ BOOL WINAPI EnumDisplayAdaptersCallback(
|
||||
void __cdecl WinVidResizeGameWindow(HWND hWnd, int edge, LPRECT rect);
|
||||
bool __cdecl WinVidCheckGameWindowPalette(HWND hWnd);
|
||||
bool __cdecl WinVidCreateGameWindow(void);
|
||||
void __cdecl WinVidFreeWindow(void);
|
||||
|
@ -443,7 +443,6 @@
|
||||
#define ControlLavaBlob ((void __cdecl (*)(int16_t fx_num))0x00442F40)
|
||||
#define GiantYetiControl ((void __cdecl (*)(int16_t item_num))0x00443050)
|
||||
#define YetiControl ((void __cdecl (*)(int16_t item_num))0x00443350)
|
||||
#define WinVidFreeWindow ((void __cdecl (*)(void))0x00446B30)
|
||||
#define WinVidExitMessage ((void __cdecl (*)(void))0x00446B60)
|
||||
#define WinVidGetDisplayAdapter ((DISPLAY_ADAPTER_NODE *__cdecl (*)(GUID *lpGuid))0x00446BB0)
|
||||
#define WinVidStart ((void __cdecl (*)(void))0x00446C00)
|
||||
|
@ -161,6 +161,7 @@ static void Inject_Decomp(const bool enable)
|
||||
INJECT(enable, 0x004467C0, WinVidResizeGameWindow);
|
||||
INJECT(enable, 0x004469A0, WinVidCheckGameWindowPalette);
|
||||
INJECT(enable, 0x00446A60, WinVidCreateGameWindow);
|
||||
INJECT(enable, 0x00446B30, WinVidFreeWindow);
|
||||
}
|
||||
|
||||
static void Inject_Background(const bool enable)
|
||||
|
Loading…
Reference in New Issue
Block a user