From 7db07b904cc6573daea71eeaf80162c53df02e4f Mon Sep 17 00:00:00 2001 From: azw Date: Fri, 10 Nov 2023 11:18:31 +0000 Subject: [PATCH] 1 --- server/masterserver/app.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/masterserver/app.cc b/server/masterserver/app.cc index 74de620..f440b5b 100755 --- a/server/masterserver/app.cc +++ b/server/masterserver/app.cc @@ -109,5 +109,11 @@ void App::DispatchSocketMsg(f8::MsgHdr* hdr) int App::GetGameId() const { +#ifdef DEBUG + std::string game_id = a8::XValue(getenv("_")).GetString(); + a8::ReplaceString(game_id, "./masterserver", ""); + return a8::XValue(game_id); +#else return GAME_ID; +#endif }