[Proxy]: Format (#991)

This commit is contained in:
Edo 2023-05-01 22:50:42 +01:00 committed by GitHub
parent 5b04b71c4d
commit 233242a013
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -122,10 +122,12 @@ namespace Components
{ {
Game::Com_PrintMessage(Game::CON_CHANNEL_DONT_FILTER, i->data(), 0); Game::Com_PrintMessage(Game::CON_CHANNEL_DONT_FILTER, i->data(), 0);
#ifdef _DEBUG
if (!IsConsoleReady()) if (!IsConsoleReady())
{ {
OutputDebugStringA(i->data()); OutputDebugStringA(i->data());
} }
#endif
i = MessageQueue.erase(i); i = MessageQueue.erase(i);
} }

View File

@ -4,7 +4,6 @@ namespace Main
{ {
void Initialize() void Initialize()
{ {
Utils::SetEnvironment();
Utils::Cryptography::Initialize(); Utils::Cryptography::Initialize();
Components::Loader::Initialize(); Components::Loader::Initialize();
@ -70,6 +69,7 @@ BOOL APIENTRY DllMain(HINSTANCE /*hinstDLL*/, DWORD fdwReason, LPVOID /*lpvReser
} }
#endif #endif
Utils::SetEnvironment();
Steam::Proxy::RunMod(); Steam::Proxy::RunMod();
// Install entry point hook // Install entry point hook
Utils::Hook(0x6BAC0F, Main::EntryPoint, HOOK_JUMP).install()->quick(); Utils::Hook(0x6BAC0F, Main::EntryPoint, HOOK_JUMP).install()->quick();

View File

@ -60,7 +60,7 @@ namespace Steam
if (this->getMethodData(*vftbl, &name, &params) && name == method) if (this->getMethodData(*vftbl, &name, &params) && name == method)
{ {
return{ vftbl->data, params }; return { vftbl->data, params };
} }
++vftbl; ++vftbl;
@ -164,7 +164,7 @@ namespace Steam
clientUtils.invoke<void>("SetAppIDForCurrentPipe", Proxy::AppId, false); clientUtils.invoke<void>("SetAppIDForCurrentPipe", Proxy::AppId, false);
char ourPath[MAX_PATH]{}; char ourPath[MAX_PATH]{};
GetModuleFileNameA(GetModuleHandle(nullptr), ourPath, sizeof(ourPath)); GetModuleFileNameA(GetModuleHandleA(nullptr), ourPath, sizeof(ourPath));
char ourDirectory[MAX_PATH]{}; char ourDirectory[MAX_PATH]{};
GetCurrentDirectoryA(sizeof(ourDirectory), ourDirectory); GetCurrentDirectoryA(sizeof(ourDirectory), ourDirectory);