From c67dc2ca496ed3a764aa525232104a08caaeaf3b Mon Sep 17 00:00:00 2001 From: PTKay Date: Sun, 11 Feb 2024 15:48:10 +0000 Subject: [PATCH] Use generic SetObject type when exporting INI --- HeroesPowerPlant/LayoutEditor/LayoutEditorFunctions.cs | 2 +- HeroesPowerPlant/LayoutEditor/LayoutEditorSystem.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HeroesPowerPlant/LayoutEditor/LayoutEditorFunctions.cs b/HeroesPowerPlant/LayoutEditor/LayoutEditorFunctions.cs index 793fa73..7a79e57 100644 --- a/HeroesPowerPlant/LayoutEditor/LayoutEditorFunctions.cs +++ b/HeroesPowerPlant/LayoutEditor/LayoutEditorFunctions.cs @@ -367,7 +367,7 @@ public static List GetHeroesLayoutFromINI(string fileName) return list; } - public static void SaveHeroesLayoutINI(IEnumerable list, string outputFile) + public static void SaveLayoutINI(IEnumerable list, string outputFile) { var iniWriter = new StreamWriter(new FileStream(outputFile, FileMode.Create)); iniWriter.WriteLine("#Exported by HeroesPowerPlant"); diff --git a/HeroesPowerPlant/LayoutEditor/LayoutEditorSystem.cs b/HeroesPowerPlant/LayoutEditor/LayoutEditorSystem.cs index bd33fd9..9bd1b48 100644 --- a/HeroesPowerPlant/LayoutEditor/LayoutEditorSystem.cs +++ b/HeroesPowerPlant/LayoutEditor/LayoutEditorSystem.cs @@ -150,7 +150,7 @@ public void Save() public void SaveINI(string fileName) { - SaveHeroesLayoutINI(setObjects.Cast(), fileName); + SaveLayoutINI(setObjects.Cast(), fileName); } public void ImportINI(string fileName)