Index: ps/trunk/binaries/data/mods/public/gui/gamesetup_mp/gamesetup_mp.js =================================================================== --- ps/trunk/binaries/data/mods/public/gui/gamesetup_mp/gamesetup_mp.js +++ ps/trunk/binaries/data/mods/public/gui/gamesetup_mp/gamesetup_mp.js @@ -347,10 +347,10 @@ { startConnectionStatus("server"); - Engine.ConfigDB_CreateAndSaveValue("user", "playername.multiplayer", playername); - - Engine.ConfigDB_CreateAndSaveValue("user", "multiplayerhosting.port", port); - + Engine.ConfigDB_CreateValue("user", "playername.multiplayer", playername); + Engine.ConfigDB_CreateValue("user", "multiplayerhosting.port", port); + Engine.ConfigDB_SaveChanges("user"); + let hostFeedback = Engine.GetGUIObjectByName("hostFeedback"); // Disallow identically named games in the multiplayer lobby @@ -415,9 +415,10 @@ Engine.LobbySetPlayerPresence("playing"); // Only save the player name and host address if they're valid. - Engine.ConfigDB_CreateAndSaveValue("user", "playername.multiplayer", playername); - Engine.ConfigDB_CreateAndSaveValue("user", "multiplayerserver", ip); - Engine.ConfigDB_CreateAndSaveValue("user", "multiplayerjoining.port", port); + Engine.ConfigDB_CreateValue("user", "playername.multiplayer", playername); + Engine.ConfigDB_CreateValue("user", "multiplayerserver", ip); + Engine.ConfigDB_CreateValue("user", "multiplayerjoining.port", port); + Engine.ConfigDB_SaveChanges("user"); return true; } Index: ps/trunk/binaries/data/mods/public/gui/prelobby/common/credentials/credentials.js =================================================================== --- ps/trunk/binaries/data/mods/public/gui/prelobby/common/credentials/credentials.js +++ ps/trunk/binaries/data/mods/public/gui/prelobby/common/credentials/credentials.js @@ -78,13 +78,14 @@ function saveCredentials() { let username = Engine.GetGUIObjectByName("username").caption; - Engine.ConfigDB_CreateAndSaveValue("user", "playername.multiplayer", username); - Engine.ConfigDB_CreateAndSaveValue("user", "lobby.login", username); + Engine.ConfigDB_CreateValue("user", "playername.multiplayer", username); + Engine.ConfigDB_CreateValue("user", "lobby.login", username); if (Engine.ConfigDB_GetValue("user", "lobby.rememberpassword") == "true") - Engine.ConfigDB_CreateAndSaveValue("user", "lobby.password", getEncryptedPassword()); + Engine.ConfigDB_CreateValue("user", "lobby.password", getEncryptedPassword()); else { - Engine.ConfigDB_RemoveValueAndSave("user", "lobby.password"); + Engine.ConfigDB_RemoveValue("user", "lobby.password"); } + Engine.ConfigDB_SaveChanges("user"); } Index: ps/trunk/binaries/data/mods/public/gui/session/AutoFormation.js =================================================================== --- ps/trunk/binaries/data/mods/public/gui/session/AutoFormation.js +++ ps/trunk/binaries/data/mods/public/gui/session/AutoFormation.js @@ -38,7 +38,7 @@ this.defaultFormation = formation; if (formation !== NULL_FORMATION) this.lastDefault = this.defaultFormation; - Engine.ConfigDB_ConfigDB_CreateAndSaveValue("user", "gui.session.defaultformation", this.defaultFormation); + Engine.ConfigDB_CreateAndSaveValue("user", "gui.session.defaultformation", this.defaultFormation); return true; } Index: ps/trunk/binaries/data/mods/public/gui/splashscreen/splashscreen.js =================================================================== --- ps/trunk/binaries/data/mods/public/gui/splashscreen/splashscreen.js +++ ps/trunk/binaries/data/mods/public/gui/splashscreen/splashscreen.js @@ -8,7 +8,8 @@ function closePage() { - Engine.ConfigDB_CreateAndSaveValue("user", "gui.splashscreen.enable", String(Engine.GetGUIObjectByName("displaySplashScreen").checked)); - Engine.ConfigDB_CreateAndSaveValue("user", "gui.splashscreen.version", Engine.GetFileMTime(g_SplashScreenFile)); + Engine.ConfigDB_CreateValue("user", "gui.splashscreen.enable", String(Engine.GetGUIObjectByName("displaySplashScreen").checked)); + Engine.ConfigDB_CreateValue("user", "gui.splashscreen.version", Engine.GetFileMTime(g_SplashScreenFile)); + Engine.ConfigDB_SaveChanges("user"); Engine.PopGuiPage(); }