Skip to content

Commit

Permalink
MHWilds: Fix a startup crash
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 4, 2025
1 parent 702e973 commit 03a02a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mods/IntegrityCheckBypass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,13 @@ void IntegrityCheckBypass::init_anti_debug_watcher() {

s_anti_anti_debug_thread = std::make_unique<std::jthread>([](std::stop_token stop_token) {
spdlog::info("[IntegrityCheckBypass]: Hello from anti_debug_watcher!");
spdlog::info("[IntegrityCheckBypass]: Waiting for REFramework startup to finish...");

while (g_framework == nullptr) {
std::this_thread::yield();
}

spdlog::info("[IntegrityCheckBypass]: REFramework startup finished!");

while (!stop_token.stop_requested()) {
anti_debug_watcher();
Expand Down

0 comments on commit 03a02a1

Please sign in to comment.