Skip to content

Commit

Permalink
fix(client/launcher): SavedBuildNumber after build CLI rework
Browse files Browse the repository at this point in the history
  • Loading branch information
blattersturm committed Jan 23, 2022
1 parent 398c1c2 commit 20e6568
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/client/launcher/CrossBuildLaunch.cpp
Expand Up @@ -4,6 +4,8 @@
#include <MinHook.h>
#include <Hooking.Aux.h>

#include <CfxState.h>

static decltype(&GetCommandLineW) g_origGetCommandLineWBase;
static decltype(&GetCommandLineW) g_origGetCommandLineW32;
static decltype(&GetCommandLineA) g_origGetCommandLineABase;
Expand Down Expand Up @@ -102,6 +104,9 @@ void XBR_EarlySelect()
{
g_intendedBuild = retainedBuild;

auto state = CfxState::Get();
wcscat(state->initCommandLine, va(L" -b%d", g_intendedBuild));

DisableToolHelpScope scope;

MH_Initialize();
Expand Down

0 comments on commit 20e6568

Please sign in to comment.