Skip to content

Commit

Permalink
lets not rely on the cars folder anymore for skin import with 1 singl…
Browse files Browse the repository at this point in the history
…e livery
  • Loading branch information
RiddleTime committed Apr 16, 2022
1 parent 99f72fc commit d3c7912
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ACC_Manager/Controls/About/ReleaseNotes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public static class ReleaseNotes
{
{"0.0.3.9", "- Livery Deleter: shows the to be deleted skin in the livery displayer."+
"\n- Add new app icon."+
"\n- Fix issue with importer which caused acc manager to not keep a file stream open."},
"\n- Fix issue with importer which caused acc manager to not keep a file stream open."+
"\n- Add more botched import scenarios for livery archives that only contain 1 livery."},
{"0.0.3.8", "- Setup conversion added: Aston Martin V8 Vantage GT3 2019(by FBalazs)."+
"\n- Livery Browser: added context menu option to delete liveries."},
{"0.0.3.7", "- Setups tab: Car names have the year added."+
Expand Down
5 changes: 3 additions & 2 deletions ACC_Manager/Controls/Liveries/LiveryImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,14 @@ private static void ImportArchive(FileInfo fi)
return x.Key.ToLower().EndsWith("cars/") || x.Key.ToLower().EndsWith("cars\\");
});

if (carsFolders.Count == 0)
if (availableSkins.Count == 1)
{
Debug.WriteLine("WTF???? noob export");
Debug.WriteLine("WTF???? noob export, going to try the botched import strategy.");
ImportStrategies.BotchedImportStrategy(archiveEntries);
}
else
{
Debug.WriteLine("Multiple liveries detected within 1 archive, using default import strategy.");
ImportStrategies.DefaultImportStrategy(archiveEntries);
}
}
Expand Down

0 comments on commit d3c7912

Please sign in to comment.