This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
main.cpp
54 lines (48 loc) · 1.53 KB
/
main.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Built by Cristei Gabriel-Marian (cristeigabriel)
// (cristei <dot> g772 <at> gmail <dot> com)
//
// ~TeamSCALEFORM~
#include <thread>
#include <filesystem>
#include "init.hpp"
static void run_init()
{
LOG("Created by cristeigabriel, with the help of:\n"
"isak, jo and other public contributors\n"
"cristeigabriel: reverse engineering, boilerplate, original JS,\n"
"making TeamSCALEFORM its own project\n"
"isak: new JS, design\n"
"jo: 2013 winpanel\n"
"bruhmoment21: Linux port\n"
"~~~~~~~~~~~~\n"
"Refer to config.hpp for help\n"
"NOTE: TeamSCALEFORM currently requires you disconnect\n"
"for Scaleform Toggle Off to take effect\n"
"(Toggle On will immediately take effect.)\n"
"JavaScript to load on bind must be located at %s\\base.js\n"
"~~~~~~~~~~~~\n"
"This software is licensed under AGPL-3.0, if it\n"
"wasn't shipped with the source code, you can download it at\n"
"https://github.com/TeamSCALEFORM/scaleform\n"
"~~~~~~~~~~~~\n",
std::filesystem::current_path().string().c_str());
::init();
}
#ifdef WIN32
BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved)
{
if (reason != DLL_PROCESS_ATTACH)
return FALSE;
(void)(reserved);
AllocConsole();
freopen_s((FILE**)stdout, "CONOUT$", "w", stdout);
run_init();
return TRUE;
}
#else
static void __attribute__((constructor)) attach()
{
std::thread _{run_init};
_.detach();
}
#endif