@@ -71,6 +71,7 @@ REFERENCE_DECLARE(0x0244DF07, bool, byte_244DF07);
7171REFERENCE_DECLARE (0x0244DF08 , bool , byte_244DF08);
7272
7373// HOOK_DECLARE(0x00504D20, _internal_halt_render_thread_and_lock_resources);
74+ HOOK_DECLARE (0x00504F80 , audio_thread_loop);
7475HOOK_DECLARE (0x00505530 , main_events_pending);
7576HOOK_DECLARE (0x00505650 , main_events_reset);
7677HOOK_DECLARE (0x005063A0 , main_loop_pregame);
@@ -196,18 +197,18 @@ dword __cdecl _internal_halt_render_thread_and_lock_resources(char const* file,
196197
197198dword __cdecl audio_thread_loop (void * blah)
198199{
199- return INVOKE (0x00504F80 , audio_thread_loop, blah);
200+ // return INVOKE(0x00504F80, audio_thread_loop, blah);
200201
201- // if (game_is_multithreaded())
202- // {
203- // while (!current_thread_should_exit())
204- // {
205- // current_thread_update_test_functions();
206- // sound_render_dispatch();
207- // }
208- // }
209- //
210- // return 1;
202+ if (game_is_multithreaded ())
203+ {
204+ while (!current_thread_should_exit ())
205+ {
206+ current_thread_update_test_functions ();
207+ sound_render_dispatch ();
208+ }
209+ }
210+
211+ return 1 ;
211212}
212213
213214// .text:00505170 ; public: bool __cdecl s_scenario_zone_activation::is_empty() const
0 commit comments