MCPcopy Create free account
hub / github.com/Lovrom8/RSMods / HandleTwoRTCBypassToggle

Function HandleTwoRTCBypassToggle

DLL/ModManager.cpp:500–512  ·  view source on GitHub ↗

Handles dynamic toggling of the two RTC message box bypass.

Source from the content-addressed store, hash-verified

498 /// Handles dynamic toggling of the two RTC message box bypass.
499 /// </summary>
500 void HandleTwoRTCBypassToggle()
501 {
502 static bool rsAsioBypassTwoRTC = false;
503
504 if (rsAsioBypassTwoRTC) return;
505
506 if (Settings::ReturnSettingValue("BypassTwoRTCMessageBox") == "off" && *(char*)Offsets::ptr_twoRTCBypass.Get() == Offsets::ptr_twoRTCBypass_patch_call[0]) {
507 MemUtil::PatchAdr((LPVOID)Offsets::ptr_twoRTCBypass.Get(), (LPVOID)Offsets::ptr_twoRTCBypass_original, 6);
508 }
509 else if (Settings::ReturnSettingValue("BypassTwoRTCMessageBox") == "on" && *(char*)Offsets::ptr_twoRTCBypass.Get() == Offsets::ptr_twoRTCBypass_original[0]) {
510 QualityOfLife::PatchTwoRTC();
511 }
512 }
513
514
515 /// <summary>

Callers 1

HandlePostGameLoadedModsFunction · 0.85

Calls 2

PatchTwoRTCFunction · 0.85
GetMethod · 0.80

Tested by

no test coverage detected