1
This commit is contained in:
parent
fedc0c25a1
commit
d01067cd4f
@ -500,8 +500,12 @@ void App::DispatchUdpMsg()
|
|||||||
int App::GetGameId() const
|
int App::GetGameId() const
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#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, "./wsproxy", "");
|
std::vector<std::string> strings;
|
||||||
|
a8::Split(game_id, strings, '/');
|
||||||
|
game_id = strings.at(strings.size() - 1);
|
||||||
|
//a8::XPrintf("exe:%s\n", {game_id});
|
||||||
|
a8::ReplaceString(game_id, "wsproxy", "");
|
||||||
return a8::XValue(game_id);
|
return a8::XValue(game_id);
|
||||||
#else
|
#else
|
||||||
return GAME_ID;
|
return GAME_ID;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user