From f30285b0cebf3e580e97f9e1537be8be407296f0 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 4 Oct 2020 21:03:44 +0200 Subject: [PATCH] - route menu's CheckGame call through SysCallbacks. Needed to be able to move the menu into the backend. --- src/common/engine/i_interface.h | 1 + src/d_main.cpp | 6 ++++++ 2 files changed, 7 insertions(+) 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, };