This commit is contained in:
azw 2023-11-10 11:18:31 +00:00
parent 80ce110950
commit 7db07b904c

View File

@ -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
}