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:
parent
98404ad8ea
commit
b485fac33e
2 changed files with 31 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue