fix partial config reset upon deleting a map.

This commit is contained in:
Bitl 2021-11-06 10:01:06 -07:00
parent 4c6b8daedd
commit 5e38a35d5a
3 changed files with 16 additions and 17 deletions

View File

@ -229,6 +229,19 @@ public class GlobalFuncs
GlobalVars.UserConfiguration.DiscordPresence = Convert.ToBoolean(discord);
GlobalVars.UserConfiguration.MapPathSnip = mapsnip;
GlobalVars.UserConfiguration.GraphicsMode = (Settings.Mode)Convert.ToInt32(graphics);
GlobalVars.UserConfiguration.ReShade = Convert.ToBoolean(reshade);
GlobalVars.UserConfiguration.QualityLevel = (Settings.Level)Convert.ToInt32(qualitylevel);
GlobalVars.UserConfiguration.LauncherStyle = (Settings.Style)Convert.ToInt32(style);
GlobalVars.UserConfiguration.AssetLocalizerSaveBackups = Convert.ToBoolean(savebackups);
GlobalVars.UserConfiguration.AlternateServerIP = altIP;
GlobalVars.UserConfiguration.DisableReshadeDelete = Convert.ToBoolean(disReshadeDel);
GlobalVars.UserConfiguration.ShowServerNotifications = Convert.ToBoolean(showNotifs);
GlobalVars.UserConfiguration.ServerBrowserServerName = SB_Name;
GlobalVars.UserConfiguration.ServerBrowserServerAddress = SB_Address;
GlobalVars.UserConfiguration.Priority = (ProcessPriorityClass)Convert.ToInt32(priority);
GlobalVars.UserConfiguration.InitialBootup = Convert.ToBoolean(initialBootup);
GlobalVars.UserConfiguration.FirstServerLaunch = Convert.ToBoolean(firstServerLaunch);
string oldMapath = Path.GetDirectoryName(GlobalVars.UserConfiguration.MapPath);
//update the map path if the file doesn't exist and write to config.
@ -246,20 +259,6 @@ public class GlobalFuncs
{
Config(cfgpath, true);
}
GlobalVars.UserConfiguration.GraphicsMode = (Settings.Mode)Convert.ToInt32(graphics);
GlobalVars.UserConfiguration.ReShade = Convert.ToBoolean(reshade);
GlobalVars.UserConfiguration.QualityLevel = (Settings.Level)Convert.ToInt32(qualitylevel);
GlobalVars.UserConfiguration.LauncherStyle = (Settings.Style)Convert.ToInt32(style);
GlobalVars.UserConfiguration.AssetLocalizerSaveBackups = Convert.ToBoolean(savebackups);
GlobalVars.UserConfiguration.AlternateServerIP = altIP;
GlobalVars.UserConfiguration.DisableReshadeDelete = Convert.ToBoolean(disReshadeDel);
GlobalVars.UserConfiguration.ShowServerNotifications = Convert.ToBoolean(showNotifs);
GlobalVars.UserConfiguration.ServerBrowserServerName = SB_Name;
GlobalVars.UserConfiguration.ServerBrowserServerAddress = SB_Address;
GlobalVars.UserConfiguration.Priority = (ProcessPriorityClass)Convert.ToInt32(priority);
GlobalVars.UserConfiguration.InitialBootup = Convert.ToBoolean(initialBootup);
GlobalVars.UserConfiguration.FirstServerLaunch = Convert.ToBoolean(firstServerLaunch);
}
#if URI || LAUNCHER || CMD
catch (Exception ex)

View File

@ -53,7 +53,6 @@ Changes from Pre-Release 5:
- Server hosters may now insert a "SkipSecurity" object into Lighting that will skip security. SkipSecurity may also be removed to re-enable security.
- Increased the speed of loading outfits in 2011 clients.
- Fixed issues with launching Novetus from itch.io.
- The server browser now pings the server and shows the current server status.
- Novetus now does the following things if a client is open:
- You can no longer run more than 1 client at the same time unless you are hosting a local server or you are using Local Play.
- You can no longer change clients when a game is open.
@ -75,6 +74,8 @@ Changes from Pre-Release 5:
- Fixed text wrapping issues with the Stylish style.
- Added Lua script support to the Asset SDK's downloader.
- Fixed bugs with saving config files.
- Fixed Discord Rich Presence to account for multiple types of clients loading at once.
- Fixed a bug where Novetus would reset a part of the config after the user deletes the selected map.
Changes from 1.2.4.1:
- The OBJ2MeshV1GUI, The Asset Localizer, and the Item SDK have been merged to form the Asset SDK!
- Works with the Roblox Asset Delivery API! Note: Script assets wil have to be downloaded manually in order to be used in scripts.

View File

@ -29,7 +29,6 @@ y = mx + b|How do you find the slope again?
Open Source!|Find it on github.com/Novetus/Novetus_src!
Defeat enemy!|From Half-Life 2 Survivor Ver 2.0.
Needs dual welding!
A man chooses, a slave obeys.|From Bioshock 1.
Unity, Duty, DESTINY!|The Three Virtues, from Bionicle.
MEIN LEBEN!
Spaceship!|SPACESHIP!
@ -149,7 +148,7 @@ You smell like fishes! FISHES!|I bet you eat your young.
What do you want to build today?
[stylish]I'm SINCERELY thanking you, you're not stopping me!|From Cells at Work.
!++&::%^
No-ve-tus|The pronoucuation of Novetus.
No-ve-tus|The pronunciation of Novetus.
[normal]...AND I...AM AN ARSONIST.|BURN STUFF. MUHAHAHHAHA.
[stylish]I AM SAMUEL L. JACKSON. AND I...AM AN ARSONIST.|BURN STUFF. MUHAHAHHAHA.
Is nostalgia my inherent weakness?