1
This commit is contained in:
parent
2aac0613d9
commit
5cf97989ab
@ -112,7 +112,11 @@ int App::GetGameId() const
|
||||
{
|
||||
#ifdef DEBUG
|
||||
std::string game_id = a8::XValue((f8::App::Instance()->GetArgv())[0]).GetString();
|
||||
a8::ReplaceString(game_id, "./masterserver", "");
|
||||
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, "masterserver", "");
|
||||
return a8::XValue(game_id);
|
||||
#else
|
||||
return GAME_ID;
|
||||
|
Loading…
x
Reference in New Issue
Block a user