-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdllmain.cpp
31 lines (28 loc) · 850 Bytes
/
dllmain.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// dllmain.cpp : Definiert den Einstiegspunkt für die DLL-Anwendung.
#include <Windows.h>
#include <Windows.h>
#include <stdio.h>
#include <iostream>
#include "Console.h"
#include "Trampoline.h"
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
Console::RedirectStdout();
Console::PrintRainbow("Balatro Unsteamed by sam-k0 - this is open source!");
Console::Print("Press F1 to change log level", 69);
Trampoline::LoadOriginalDLL();
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Trampoline::KeyboardMenu, 0, 0, 0);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}