iOS: forced saving settings when connecting to the game
This commit is contained in:
parent
75d755a331
commit
cca13417fe
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user