mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02: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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user