mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- route menu's CheckGame call through SysCallbacks.
Needed to be able to move the menu into the backend.
This commit is contained in:
parent
46043f6278
commit
f30285b0ce
2 changed files with 7 additions and 0 deletions
|
@ -22,6 +22,7 @@ struct SystemCallbacks
|
||||||
void (*MenuDim)();
|
void (*MenuDim)();
|
||||||
FString(*GetPlayerName)(int i);
|
FString(*GetPlayerName)(int i);
|
||||||
bool (*DispatchEvent)(event_t* ev);
|
bool (*DispatchEvent)(event_t* ev);
|
||||||
|
bool (*CheckGame)(const char* nm);
|
||||||
};
|
};
|
||||||
|
|
||||||
extern SystemCallbacks sysCallbacks;
|
extern SystemCallbacks sysCallbacks;
|
||||||
|
|
|
@ -2741,6 +2741,11 @@ static bool System_DispatchEvent(event_t* ev)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool System_CheckGame(const char* name)
|
||||||
|
{
|
||||||
|
return CheckGame(name, false);
|
||||||
|
}
|
||||||
|
|
||||||
bool System_NetGame()
|
bool System_NetGame()
|
||||||
{
|
{
|
||||||
return netgame;
|
return netgame;
|
||||||
|
@ -3073,6 +3078,7 @@ static int D_DoomMain_Internal (void)
|
||||||
System_M_Dim,
|
System_M_Dim,
|
||||||
System_GetPlayerName,
|
System_GetPlayerName,
|
||||||
System_DispatchEvent,
|
System_DispatchEvent,
|
||||||
|
System_CheckGame,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue