|
1 | | -using System.Collections; |
2 | | -using BepInEx; |
| 1 | +using BepInEx; |
3 | 2 | using BepInEx.Configuration; |
4 | 3 | using HarmonyLib; |
5 | 4 | using JetBrains.Annotations; |
@@ -45,7 +44,7 @@ public void Start() |
45 | 44 | MyPluginInfo.PLUGIN_NAME, |
46 | 45 | "Ignore auto-saves when loading last save game", |
47 | 46 | 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."); |
49 | 48 |
|
50 | 49 | } |
51 | 50 |
|
@@ -117,15 +116,15 @@ private void LoadLastSinglePlayerGame() |
117 | 116 | var save_components = _mainMenu.GetComponentsInChildren<SaveLoadDialogFileEntry>(); |
118 | 117 | Logger.LogDebug($"save_components.Length: {save_components.Length}"); |
119 | 118 |
|
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) |
122 | 121 | { |
123 | 122 | // 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"); |
125 | 124 | return; |
126 | 125 | } |
127 | 126 |
|
128 | | - for (var i = 0; i<sgl.transform.childCount; ++i) |
| 127 | + for (var i = 0; i<saveGamesList.transform.childCount; ++i) |
129 | 128 | { |
130 | 129 | string curr_save_name = save_components[i]._labelSaveName.text; |
131 | 130 | if (_loadIgnoreAutoSaves.Value && curr_save_name.StartsWith("autosave")) continue; |
|
0 commit comments