iOS: forced saving settings when connecting to the game

master
MoNTE48 2021-12-02 23:09:51 +01:00
parent 75d755a331
commit cca13417fe
1 changed files with 5 additions and 0 deletions

View File

@ -145,6 +145,11 @@ int ModApiMainMenu::l_start(lua_State *L)
data->serverdescription = getTextData(L,"serverdescription");
data->servername = getTextData(L,"servername");
#ifdef __IOS__
std::string conf_path = porting::path_user + DIR_DELIM + "multicraft.conf";
g_settings->updateConfigFile(conf_path.c_str());
#endif
//close menu next time
engine->m_startgame = true;
return 0;