Removed useless "context switching" feature

Tidied up code
This commit is contained in:
L committed 2023-01-30 00:50:21 +01:00
1 parent 8366a2b320
commit 4d82fb29cb
7 files changed
+4180 -4481

No files matched your search

-31
View File
@@ -2290,37 +2290,6 @@ bool ScriptVM::EventThrow(Event* ev)
return false;
}
/*
====================
AllowContextSwitch
====================
*/
void ScriptVM::AllowContextSwitch(bool allow)
{
m_bAllowContextSwitch = allow;
}
/*
====================
RequestContextSwitch
Requests a context switch
====================
*/
void ScriptVM::RequestContextSwitch(void)
{
if (!m_bAllowContextSwitch || !Director.m_bAllowContextSwitch) {
return;
}
//glbs.DPrintf( "Performing context switch\n" );
Director.AddContextSwitch(m_Thread);
m_ThreadState = THREAD_CONTEXT_SWITCH;
Suspend();
}
bool ScriptVM::CanScriptTracePrint
(
void