mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Make setting default system less garbage
This commit is contained in:
parent
af1dffa320
commit
fc903b4117
@ -121,7 +121,7 @@ namespace NewHorizons
|
||||
// Else it doesn't get set idk
|
||||
if (currentScene == "TitleScreen" && SystemDict.ContainsKey(_defaultSystemOverride))
|
||||
{
|
||||
_currentStarSystem = _defaultSystemOverride;
|
||||
_currentStarSystem = string.IsNullOrEmpty(_defaultSystemOverride) ? "SolarSystem" : _defaultSystemOverride;
|
||||
}
|
||||
|
||||
var wasUsingCustomTitleScreen = _useCustomTitleScreen;
|
||||
@ -811,7 +811,14 @@ namespace NewHorizons
|
||||
|
||||
public void SetDefaultSystem(string defaultSystem)
|
||||
{
|
||||
_defaultStarSystem = defaultSystem;
|
||||
if (string.IsNullOrEmpty(defaultSystem))
|
||||
{
|
||||
_defaultStarSystem = "SolarSystem";
|
||||
}
|
||||
else
|
||||
{
|
||||
_defaultStarSystem = defaultSystem;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Load
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user