[ServerList] Delete favourites
This commit is contained in:
parent
4e60c142c7
commit
6762b68ab0
@ -339,8 +339,6 @@ namespace Components
|
||||
}
|
||||
}
|
||||
|
||||
servers.push_back(server);
|
||||
|
||||
json11::Json data = json11::Json(servers);
|
||||
Utils::IO::WriteFile("players/favourites.json", data.dump());
|
||||
|
||||
|
@ -471,9 +471,12 @@ namespace Game
|
||||
|
||||
void MessageBox(std::string message, std::string title)
|
||||
{
|
||||
Dvar_SetStringByName("com_errorMessage", message.data());
|
||||
Dvar_SetStringByName("com_errorTitle", title.data());
|
||||
Cbuf_AddText(0, "openmenu error_popmenu_lobby");
|
||||
if (!Game::CL_IsCgameInitialized())
|
||||
{
|
||||
Dvar_SetStringByName("com_errorMessage", message.data());
|
||||
Dvar_SetStringByName("com_errorTitle", title.data());
|
||||
Cbuf_AddText(0, "openmenu error_popmenu_lobby");
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int R_HashString(const char* string)
|
||||
|
Loading…
x
Reference in New Issue
Block a user