You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GalacticScale2/Scripts/GalacticScale2.0/Init.cs
+19-6Lines changed: 19 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -117,29 +117,35 @@ public static void UpdateNebulaSettings()
117
117
public static void Init()
118
118
119
119
{
120
+
Warn("Start");
120
121
if (File.Exists(Path.Combine(AssemblyPath, "icon.png")))
121
122
{
122
123
updateMessage += "Update Detected. Please do not save over existing saves \r\nuntil you are sure you can load saves saved with this version!\r\nPlease Click GS2 Help and click the link to join our community on discord for preview builds and to help shape the mod going forward".Translate();
updateMessage += "The latest DSP update has added additional planet themes which are yet to be included in GS2. \r\nI'm working on getting them added to the GS2 themeset, as well as implementing their new subtheme system";
125
126
}
126
127
127
-
// Warn("Start");
128
+
Warn("Step2");
128
129
if (Directory.Exists(OldDataDir) && !Directory.Exists(DataDir))
129
130
{
130
131
Warn($"Moving Configs from {OldDataDir} to {DataDir}");
131
132
Directory.Move(OldDataDir, DataDir);
132
133
updateMessage += "Galactic Scale config Directory has changed to \r\n ...\\BepInEx\\config\\GalacticScale \r\nThis is to prevent data being lost when updating using the mod manager.\r\n".Translate();
133
134
}
134
-
135
+
Warn("Step3");
135
136
if (!Directory.Exists(DataDir)) Directory.CreateDirectory(DataDir);
137
+
Warn("Step4");
136
138
Config.Init();
139
+
Warn("Step5");
137
140
LoadPreferences(true);
141
+
Warn("Step6");
138
142
var themes = GSSettings.ThemeLibrary.Select(t => t.Value).ToList();
143
+
Warn("Step7");
139
144
foreach (var t in themes) t.Process();
145
+
Warn("Step8");
140
146
LoadGenerators();
147
+
Warn("Step9");
141
148
LoadPreferences();
142
-
143
149
Log("End");
144
150
}
145
151
@@ -150,16 +156,22 @@ public static void ShowMessage(string message, string title = "Galactic Scale",
0 commit comments