Skip to content

Commit 5d0681d

Browse files
committed
Cleanup
1 parent 51be371 commit 5d0681d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/SkipSplashScreen/SkipSplashScreenPlugin.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Collections;
2-
using BepInEx;
1+
using BepInEx;
32
using BepInEx.Configuration;
43
using HarmonyLib;
54
using JetBrains.Annotations;
@@ -45,7 +44,7 @@ public void Start()
4544
MyPluginInfo.PLUGIN_NAME,
4645
"Ignore auto-saves when loading last save game",
4746
false,
48-
"If enabled, auto-saves are ignored when automatically loading last save game");
47+
"If enabled, auto-saves are ignored when automatically loading last save game.");
4948

5049
}
5150

@@ -117,15 +116,15 @@ private void LoadLastSinglePlayerGame()
117116
var save_components = _mainMenu.GetComponentsInChildren<SaveLoadDialogFileEntry>();
118117
Logger.LogDebug($"save_components.Length: {save_components.Length}");
119118

120-
var sgl = _mainMenu.GetChild("SaveGamesList");
121-
if (sgl.transform.childCount != save_components.Length)
119+
var saveGamesList = _mainMenu.GetChild("SaveGamesList");
120+
if (saveGamesList.transform.childCount != save_components.Length)
122121
{
123122
// Haven't seen this happen, but just in case
124-
Logger.LogError($"Visual ({sgl.transform.childCount}) and logical {save_components.Length} save counts don't match");
123+
Logger.LogError($"Visual ({saveGamesList.transform.childCount}) and logical {save_components.Length} save counts don't match");
125124
return;
126125
}
127126

128-
for (var i = 0; i<sgl.transform.childCount; ++i)
127+
for (var i = 0; i<saveGamesList.transform.childCount; ++i)
129128
{
130129
string curr_save_name = save_components[i]._labelSaveName.text;
131130
if (_loadIgnoreAutoSaves.Value && curr_save_name.StartsWith("autosave")) continue;

0 commit comments

Comments
 (0)