Skip to content

Commit

Permalink
fix: make rdr build again
Browse files Browse the repository at this point in the history
  • Loading branch information
blattersturm committed May 1, 2020
1 parent 88ae93b commit a061311
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/client/launcher/Main.cpp
Expand Up @@ -525,6 +525,9 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine
InitializeDummies();
#endif

// check stuff regarding the game executable
std::wstring gameExecutable = MakeRelativeGamePath(GAME_EXECUTABLE);

#if defined(GTA_FIVE) || defined(IS_RDR3)
if (!ExecutablePreload_Init())
{
Expand All @@ -543,7 +546,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine
g_redirectionData = redirectionData;

#ifdef GTA_FIVE
auto gameExecutable = converter.from_bytes(redirectionData["GTA5.exe"]);
gameExecutable = converter.from_bytes(redirectionData["GTA5.exe"]);

{
DWORD versionInfoSize = GetFileVersionInfoSize(gameExecutable.c_str(), nullptr);
Expand Down

0 comments on commit a061311

Please sign in to comment.