diff --git a/src/common/engine/i_interface.h b/src/common/engine/i_interface.h index 80cc3b1e9..830e74a55 100644 --- a/src/common/engine/i_interface.h +++ b/src/common/engine/i_interface.h @@ -22,6 +22,7 @@ struct SystemCallbacks void (*MenuDim)(); FString(*GetPlayerName)(int i); bool (*DispatchEvent)(event_t* ev); + bool (*CheckGame)(const char* nm); }; extern SystemCallbacks sysCallbacks; diff --git a/src/d_main.cpp b/src/d_main.cpp index 1d4748ae8..9819a6c7d 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -2741,6 +2741,11 @@ static bool System_DispatchEvent(event_t* ev) return false; } +static bool System_CheckGame(const char* name) +{ + return CheckGame(name, false); +} + bool System_NetGame() { return netgame; @@ -3073,6 +3078,7 @@ static int D_DoomMain_Internal (void) System_M_Dim, System_GetPlayerName, System_DispatchEvent, + System_CheckGame, };