2021-01-01 19:50:16 +01:00
|
|
|
#include <stdio.h>
|
2021-02-10 16:03:02 +01:00
|
|
|
#include <windows.h>
|
2021-01-01 19:50:16 +01:00
|
|
|
|
2021-02-22 21:20:50 +01:00
|
|
|
#include "config.h"
|
2021-02-08 01:18:57 +01:00
|
|
|
#include "util.h"
|
2021-01-01 19:50:16 +01:00
|
|
|
|
2021-02-21 23:27:13 +01:00
|
|
|
#include "game/bat.h"
|
2021-02-22 00:00:17 +01:00
|
|
|
#include "game/bear.h"
|
2021-02-22 00:31:16 +01:00
|
|
|
#include "game/box.h"
|
2021-02-13 14:58:42 +01:00
|
|
|
#include "game/control.h"
|
2021-02-20 22:41:08 +01:00
|
|
|
#include "game/demo.h"
|
2021-02-13 17:23:14 +01:00
|
|
|
#include "game/draw.h"
|
2021-02-14 16:07:16 +01:00
|
|
|
#include "game/effects.h"
|
2021-02-20 22:44:56 +01:00
|
|
|
#include "game/game.h"
|
2021-02-13 14:58:42 +01:00
|
|
|
#include "game/health.h"
|
|
|
|
#include "game/items.h"
|
|
|
|
#include "game/lara.h"
|
|
|
|
#include "game/lot.h"
|
2021-02-22 10:30:35 +01:00
|
|
|
#include "game/option.h"
|
2021-02-13 18:46:57 +01:00
|
|
|
#include "game/setup.h"
|
2021-02-14 16:07:16 +01:00
|
|
|
#include "game/text.h"
|
2021-02-17 23:59:55 +01:00
|
|
|
#include "specific/file.h"
|
|
|
|
#include "specific/init.h"
|
|
|
|
#include "specific/input.h"
|
|
|
|
#include "specific/output.h"
|
2021-02-13 14:58:42 +01:00
|
|
|
|
2021-01-01 19:50:16 +01:00
|
|
|
HINSTANCE hInstance = NULL;
|
|
|
|
|
2021-02-18 16:40:32 +01:00
|
|
|
static void Tomb1MInject()
|
2021-02-10 16:03:02 +01:00
|
|
|
{
|
2021-02-21 23:27:13 +01:00
|
|
|
Tomb1MInjectGameBat();
|
2021-02-22 00:00:17 +01:00
|
|
|
Tomb1MInjectGameBear();
|
2021-02-22 00:31:16 +01:00
|
|
|
Tomb1MInjectGameBox();
|
2021-02-18 16:40:32 +01:00
|
|
|
Tomb1MInjectGameControl();
|
2021-02-20 22:41:08 +01:00
|
|
|
Tomb1MInjectGameDemo();
|
2021-02-18 16:40:32 +01:00
|
|
|
Tomb1MInjectGameDraw();
|
|
|
|
Tomb1MInjectGameEffects();
|
|
|
|
Tomb1MInjectGameHealth();
|
|
|
|
Tomb1MInjectGameItems();
|
|
|
|
Tomb1MInjectGameLOT();
|
|
|
|
Tomb1MInjectGameLara();
|
2021-02-20 13:47:10 +01:00
|
|
|
Tomb1MInjectGameLaraFire();
|
2021-02-20 01:09:31 +01:00
|
|
|
Tomb1MInjectGameLaraGun1();
|
2021-02-20 11:33:32 +01:00
|
|
|
Tomb1MInjectGameLaraGun2();
|
2021-02-18 16:40:32 +01:00
|
|
|
Tomb1MInjectGameLaraMisc();
|
|
|
|
Tomb1MInjectGameLaraSurf();
|
|
|
|
Tomb1MInjectGameLaraSwim();
|
2021-02-22 10:30:35 +01:00
|
|
|
Tomb1MInjectGameOption();
|
2021-02-18 16:40:32 +01:00
|
|
|
Tomb1MInjectGameSetup();
|
|
|
|
Tomb1MInjectGameText();
|
|
|
|
Tomb1MInjectSpecificFile();
|
|
|
|
Tomb1MInjectSpecificGame();
|
|
|
|
Tomb1MInjectSpecificInit();
|
|
|
|
Tomb1MInjectSpecificInput();
|
|
|
|
Tomb1MInjectSpecificOutput();
|
2021-01-01 19:50:16 +01:00
|
|
|
}
|
|
|
|
|
2021-02-10 16:03:02 +01:00
|
|
|
BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|
|
|
{
|
2021-01-01 19:50:16 +01:00
|
|
|
switch (fdwReason) {
|
2021-02-10 16:03:02 +01:00
|
|
|
case DLL_PROCESS_ATTACH:
|
2021-02-18 16:40:32 +01:00
|
|
|
freopen("./Tomb1Main.log", "w", stdout);
|
2021-02-22 21:20:50 +01:00
|
|
|
T1MReadConfig();
|
2021-02-10 16:03:02 +01:00
|
|
|
TRACE("Attached");
|
|
|
|
hInstance = hinstDLL;
|
2021-02-18 16:40:32 +01:00
|
|
|
Tomb1MInject();
|
2021-02-10 16:03:02 +01:00
|
|
|
break;
|
2021-01-01 19:50:16 +01:00
|
|
|
|
2021-02-10 16:03:02 +01:00
|
|
|
case DLL_PROCESS_DETACH:
|
|
|
|
TRACE("Detached");
|
|
|
|
break;
|
2021-01-01 19:50:16 +01:00
|
|
|
|
2021-02-10 16:03:02 +01:00
|
|
|
case DLL_THREAD_ATTACH:
|
|
|
|
break;
|
2021-01-01 19:50:16 +01:00
|
|
|
|
2021-02-10 16:03:02 +01:00
|
|
|
case DLL_THREAD_DETACH:
|
|
|
|
break;
|
2021-01-01 19:50:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|