mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 08:47:58 +03:00

- deleted all the __cdecl except for the #define function. because /Gd enable the __cdecl for function by default. - added the commented code in FireWeapon for TR3 entity (some function is missing)
27 lines
No EOL
849 B
C
27 lines
No EOL
849 B
C
#pragma once
|
|
|
|
#include "..\Global\global.h"
|
|
|
|
#pragma comment(linker,"/manifestdependency:\"" \
|
|
"type='win32' " \
|
|
"name='Microsoft.Windows.Common-Controls' " \
|
|
"version='6.0.0.0' " \
|
|
"processorArchitecture='*' " \
|
|
"publicKeyToken='6595b64144ccf1df' " \
|
|
"language='*'\"")
|
|
|
|
extern WINAPP App;
|
|
extern unsigned int threadId;
|
|
extern uintptr_t hThread;
|
|
extern HACCEL hAccTable;
|
|
|
|
#define GameClose ((int (__cdecl*)(void)) 0x004A8575)
|
|
#define WinAppProc2 ((int (__cdecl*)(HWND, UINT, WPARAM, LPARAM)) 0x004D2AB0)
|
|
|
|
int WinProcMsg();
|
|
int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd);
|
|
int WinClose();
|
|
LRESULT CALLBACK WinAppProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
|
void __stdcall HandleWmCommand(unsigned short wParam);
|
|
|
|
void Inject_WinMain(); |