Handles dynamic toggling of the two RTC message box bypass.
| 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> |
no test coverage detected