--- epic_patch/baseline/native/desktop_host.cpp 2026-11-11 13:25:43.167272300 +0800 +++ native/desktop_host.cpp 2026-11-11 13:18:18.680120300 +0800 @@ -982,9 +982,17 @@ fprintf(log_file,"{\"event\":\"runtime_dependencies_checked\",\"fm_exe_unity_player_game_assembly_absent\":%s}\n",game_runtime_absent?"true":"false");fflush(log_file); if(!game_runtime_absent)return 100; if(policy_audit)return audit_policies(); - auto flag=(volatile unsigned int*)((unsigned char*)module+0x1718f818); + // Activation contract comes from the adapter profile: the Steam build exposes a + // polled state word, the Epic build exports WaitForActivation instead. + if(compat_activation_kind==1){ + auto wait=(void(*)())GetProcAddress((HMODULE)module,compat_activation_export); + auto began=GetTickCount64(); + if(wait)wait(); + fprintf(log_file,"{\"event\":\"native_activation_export\",\"found\":%s,\"ms\":%llu}\n",wait?"true":"false",(unsigned long long)(GetTickCount64()-began));fflush(log_file); + } + auto flag=(volatile unsigned int*)((unsigned char*)module+compat_activation_rva); for(unsigned i=0;i<100;i++){ - if(*flag==0){ + if(compat_activation_kind==1||*flag==0){ desktop_check_cancel(); timing_active=GetTickCount64(); fprintf(log_file,"{\"event\":\"native_activation_completed\"}\n");fflush(log_file);