mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-23 07:00:22 +02:00
Removed useless "context switching" feature
Tidied up code
This commit is contained in:
1 parent
8366a2b320
commit
4d82fb29cb
7 files changed
+4180
-4481
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user