1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix configuration file behaviour

- Do not rewrite if nothing needs to be changed
- Update at program exit, in addition to updating when continuing from main menu to game
This commit is contained in:
Perttu Ahola 2012-03-11 00:53:39 +02:00
parent 98404ad8ea
commit b485fac33e
2 changed files with 31 additions and 2 deletions

View file

@ -1708,6 +1708,10 @@ int main(int argc, char *argv[])
#endif // !SERVER
// Update configuration file
if(configpath != "")
g_settings->updateConfigFile(configpath.c_str());
END_DEBUG_EXCEPTION_HANDLER(errorstream)
debugstreams_deinit();