r5sdk/r5dev/core/r5dev.h
Kawe Mazidjatari bc3b580525 Add logic for preventing recursive SDK initialization
This allows for loading the game with the client.dll without loading the main worker/sdk dll. gamesdk.dll is imported by the game executable, so we cannot circumvent its loading without some hacks, so instead, we just check if -noworkerdll is passed and not perform any init if its present.
2022-10-09 12:41:22 +02:00

23 lines
823 B
C++

#pragma once
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files
#include <windows.h>
__declspec(dllexport) void DummyExport()
{
// Required for detours.
}
const static std::string R5R_EMBLEM[] =
{
R"(+-------------------------------------------------------------+)",
R"(| ___ ___ ___ _ _ _ ___ ___ |)",
R"(| | _ \ __| _ \___| |___ __ _ __| |___ __| | __ _|_ ) |_ ) |)",
R"(| | /__ \ / -_) / _ \/ _` / _` / -_) _` | \ V // / _ / / |)",
R"(| |_|_\___/_|_\___|_\___/\__,_\__,_\___\__,_| \_//___(_)___| |)",
R"(| |)",
R"(+-------------------------------------------------------------+)"
};
static bool s_bNoWorkerDll = false;