Implement F12 game reset (MRI only)
Can be disabled with "enableReset=false". While at it, also replace the flakey volatile bool flags with proper atomics.
This commit is contained in:
parent
3a2e560139
commit
d223d83cbf
23 changed files with 343 additions and 60 deletions
|
@ -27,7 +27,7 @@
|
|||
static void nullBindingExecute()
|
||||
{
|
||||
Debug() << "The null binding doesn't do anything, so we're done!";
|
||||
shState->rtData().rqTermAck = true;
|
||||
shState->rtData().rqTermAck.set();
|
||||
}
|
||||
|
||||
static void nullBindingTerminate()
|
||||
|
@ -35,10 +35,16 @@ static void nullBindingTerminate()
|
|||
|
||||
}
|
||||
|
||||
static void nullBindingReset()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
ScriptBinding scriptBindingImpl =
|
||||
{
|
||||
nullBindingExecute,
|
||||
nullBindingTerminate
|
||||
nullBindingTerminate,
|
||||
nullBindingReset
|
||||
};
|
||||
|
||||
ScriptBinding *scriptBinding = &scriptBindingImpl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue