Skip to content

Commit

Permalink
Fix file path check for songTitleLogo.png in generator
Browse files Browse the repository at this point in the history
Correct the file path in GenerateSongTitleLogoInternal method to
properly check for the existence of songTitleLogo.png within the
menu art folder. The original code was incorrectly checking the
directory path instead of the specific file.
  • Loading branch information
MrKev312 committed Sep 5, 2024
1 parent fde3acf commit 3c214e0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ public static void GenerateSongTitleLogo(ConvertUbiArtToUnity convert)
static void GenerateSongTitleLogoInternal(ConvertUbiArtToUnity convert)
{
// Does the following exist?
//string logoPath = Path.Combine(convert.InputMenuArtFolder, "songTitleLogo.png");
FileSystem fs = convert.FileSystem;

if (fs.GetFilePath(Path.Combine(fs.InputFolders.MenuArtFolder), out CookedFile? logoPath) || logoPath == null)
if (fs.GetFilePath(Path.Combine(fs.InputFolders.MenuArtFolder, "songTitleLogo.png"), out CookedFile? logoPath) || logoPath == null)
{
//Console.WriteLine("No songTitleLogo.png found, skipping...");
Logger.Log("No songTitleLogo.png found, skipping...", LogLevel.Important);
Expand Down

0 comments on commit 3c214e0

Please sign in to comment.