Skip to content

Commit 8f236b4

Browse files
committed
fix: coop dots linux support
1 parent b5a2001 commit 8f236b4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/cvars.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@
673673
|sar_twitch_chat_channel||The Twitch channel to connect to.|
674674
|sar_twitch_chat_color|255 255 255|The color of the Twitch chat messages.|
675675
|sar_twitch_chat_enabled|0|Enables Twitch chat integration.|
676+
|sar_ui_coop_dots|0|Toggles the loading screen dots during map transitions in coop.|
676677
|sar_unlocked_chapters|-1|Max unlocked chapter.|
677678
|sar_update|cmd|sar_update [release\|pre\|canary] [exit\|restart] [force] - update SAR to the latest version. If exit is given, exit the game upon successful update; if force is given, always re-install, even if it may be a downgrade|
678679
|sar_velocitygraph|0|Shows velocity graph.|

src/Cheats.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ void Cheats::Init() {
372372
}
373373

374374
g_coopLoadingDotsPatch = new Memory::Patch();
375-
auto coopLoadingDotsBool = Memory::Scan(MODULE("client"), Offsets::LoadingProgress__SetupControlStatesInstruction) + Offsets::LoadingProgress__SetupControlStatesBoolOffset;
375+
auto coopLoadingDotsBool = Memory::Scan(MODULE("client"), Offsets::LoadingProgress__SetupControlStatesInstruction, Offsets::LoadingProgress__SetupControlStatesBoolOffset);
376376
if (coopLoadingDotsBool) {
377377
unsigned char coopLoadingDotsBoolByte = 0x1;
378378
g_coopLoadingDotsPatch->Execute(coopLoadingDotsBool, &coopLoadingDotsBoolByte, 1);

src/Offsets/Portal 2 9568.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,8 @@ SIGSCAN_EMPTY(FindElementSig)
432432
SIGSCAN_DEFAULT(GetChapterProgress, "56 8B 35 ? ? ? ? 57 8B F9 FF D6 8B 10 8B C8",
433433
"55 89 E5 57 56 53 83 EC 0C E8 ? ? ? ? 83 EC 08 8B 10")
434434

435-
// TODO: Linux Support
436-
SIGSCAN_DEFAULT(LoadingProgress__SetupControlStatesInstruction, "66 C7 86 ? ? ? ? ? ? EB", "")
437-
OFFSET_DEFAULT(LoadingProgress__SetupControlStatesBoolOffset, 7, 0)
435+
SIGSCAN_DEFAULT(LoadingProgress__SetupControlStatesInstruction, "66 C7 86 ? ? ? ? ? ? EB", "66 89 83 ? ? ? ? E9 ? ? ? ? ? ? ? ? ? ? ? 85 F6") // "vgui/loading_screens/loadingscreen_coop" xref -> LoadingProgress::SetupControlStates -> m_bDrawProgress set to 0
436+
OFFSET_DEFAULT(LoadingProgress__SetupControlStatesBoolOffset, 7, 5)
438437

439438
// Engine
440439
SIGSCAN_DEFAULT(ParseSmoothingInfoSig, "55 8B EC 0F 57 C0 81 EC ? ? ? ? B9 ? ? ? ? 8D 85 ? ? ? ? EB", ""); // "cl_demosmootherpanel.cpp" xref -> CDemoSmootherPanel::ParseSmoothingInfo

0 commit comments

Comments
 (0)