From b34446029b053f7b47da96c5d186e2b0daea19a8 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 25 Sep 2022 22:20:32 +0200 Subject: [PATCH] Set developer and cheats cvar when "Enable Cheats" is ticked This is required for the in-game dev-menu to work. --- r5dev/sdklauncher/basepanel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r5dev/sdklauncher/basepanel.cpp b/r5dev/sdklauncher/basepanel.cpp index 22abf92a..252b4b09 100644 --- a/r5dev/sdklauncher/basepanel.cpp +++ b/r5dev/sdklauncher/basepanel.cpp @@ -748,7 +748,7 @@ eLaunchMode CUIBaseSurface::BuildParameter(string& svParameters) if (this->m_CheatsToggle->Checked()) { - svParameters.append("+sv_cheats \"1\"\n"); + svParameters.append("-dev\n"); svParameters.append("-showdevmenu\n"); } @@ -961,7 +961,7 @@ eLaunchMode CUIBaseSurface::BuildParameter(string& svParameters) if (this->m_CheatsToggle->Checked()) { - svParameters.append("+sv_cheats \"1\"\n"); + svParameters.append("-dev\n"); svParameters.append("-showdevmenu\n"); }