@@ -64,7 +64,7 @@ PPC_FUNC(sub_8262A568)
6464 InitPatches ();
6565}
6666
67- std::array<const char *, 46 > _pause_ignore_task_ =
67+ std::array<const char *, 46 > g_PauseModeTaskList =
6868{
6969 " root" ,
7070 " TL_Debug" ,
@@ -174,19 +174,18 @@ void UpateSpecificTasksPause(Sonicteam::SoX::Engine::Task* ttask)
174174{
175175 for (auto & task : *ttask)
176176 {
177- std::string taskName = (&task)->GetName ();
178- printf (" task %p - %s \n " , &task, (&task)->GetName ());
177+ const char * taskName = (&task)->GetName ();
179178
180179 if ((task.m_Flag1 & 4 ) == 0 )
181180 {
182181
183- auto shouldIgnore = std::find_if (_pause_ignore_task_ .begin (), _pause_ignore_task_ .end (),
184- [& taskName](const char * task)
182+ auto shouldIgnore = std::find_if (g_PauseModeTaskList .begin (), g_PauseModeTaskList .end (),
183+ [taskName](const char * task)
185184 {
186- return strcmp (task ? task : " " , taskName. c_str () ) == 0 ;
185+ return strcmp (task ? task : " " , taskName) == 0 ;
187186 });
188187
189- if (shouldIgnore != _pause_ignore_task_ .end ())
188+ if (shouldIgnore != g_PauseModeTaskList .end ())
190189 {
191190 (&task)->Update (0.0 );
192191 }
@@ -236,12 +235,11 @@ PPC_FUNC(sub_825EA610)
236235 __imp__sub_825EA610 (ctx, base);
237236
238237
239- // Always These Tasks in pause mode
238+ // Always Do Specic Tasks during pause, to not
240239 if (pDocState->m_PauseFlags .get () != 0 )
241240 {
242241
243242 GuestToHostFunction<void >(sub_825D49E0, &pDocState->m_CriticalSection1 );
244- printf (" Traverse Main\n " );
245243 UpateSpecificTasksPause (pDocState->m_pRootTask .get ());
246244 GuestToHostFunction<void >(sub_82580920, &pDocState->m_CriticalSection1 );
247245 }
0 commit comments