Skip to content

Commit

Permalink
Merge pull request #53 from PTKay/master
Browse files Browse the repository at this point in the history
Use generic SetObject type when exporting INI
  • Loading branch information
dreamsyntax authored Feb 11, 2024
2 parents 388bddc + c67dc2c commit 3c67350
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HeroesPowerPlant/LayoutEditor/LayoutEditorFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public static List<SetObjectHeroes> GetHeroesLayoutFromINI(string fileName)
return list;
}

public static void SaveHeroesLayoutINI(IEnumerable<SetObjectHeroes> list, string outputFile)
public static void SaveLayoutINI(IEnumerable<SetObject> list, string outputFile)
{
var iniWriter = new StreamWriter(new FileStream(outputFile, FileMode.Create));
iniWriter.WriteLine("#Exported by HeroesPowerPlant");
Expand Down
2 changes: 1 addition & 1 deletion HeroesPowerPlant/LayoutEditor/LayoutEditorSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void Save()

public void SaveINI(string fileName)
{
SaveHeroesLayoutINI(setObjects.Cast<SetObjectHeroes>(), fileName);
SaveLayoutINI(setObjects.Cast<SetObject>(), fileName);
}

public void ImportINI(string fileName)
Expand Down

0 comments on commit 3c67350

Please sign in to comment.