From 2aac0613d98e51da7d5b3e50f6282433c698b9e6 Mon Sep 17 00:00:00 2001 From: azw Date: Mon, 13 Nov 2023 03:24:11 +0000 Subject: [PATCH] 1 --- server/masterserver/app.cc | 3 ++- third_party/f8 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/masterserver/app.cc b/server/masterserver/app.cc index f440b5b..5096270 100755 --- a/server/masterserver/app.cc +++ b/server/masterserver/app.cc @@ -1,5 +1,6 @@ #include "precompile.h" +#include #include #include @@ -110,7 +111,7 @@ void App::DispatchSocketMsg(f8::MsgHdr* hdr) int App::GetGameId() const { #ifdef DEBUG - std::string game_id = a8::XValue(getenv("_")).GetString(); + std::string game_id = a8::XValue((f8::App::Instance()->GetArgv())[0]).GetString(); a8::ReplaceString(game_id, "./masterserver", ""); return a8::XValue(game_id); #else diff --git a/third_party/f8 b/third_party/f8 index 7330fde..99b05bc 160000 --- a/third_party/f8 +++ b/third_party/f8 @@ -1 +1 @@ -Subproject commit 7330fde606adbaf606ae19ea27637affe51d6cf0 +Subproject commit 99b05bc4ad2c8779017f6c5ef5873c24229035bc