Fix splash install when /luma/splash.bin or /luma/splashbottom.bin were missing

This commit is contained in:
2017-09-01 12:11:25 -04:00
parent 72153ba15d
commit 867f4b61ab
4 changed files with 13 additions and 1 deletions

View File

@@ -93,6 +93,7 @@ void splash_install(Splash_s splash_to_install)
u32 size = file_to_buf(fsMakePath(PATH_UTF16, splash_to_install.top_path), ArchiveSD, &screen_buf);
if (size)
{
remake_file("/luma/splash.bin", ArchiveSD, size);
buf_to_file(size, "/luma/splash.bin", ArchiveSD, screen_buf);
free(screen_buf);
}
@@ -100,6 +101,7 @@ void splash_install(Splash_s splash_to_install)
size = file_to_buf(fsMakePath(PATH_UTF16, splash_to_install.bottom_path), ArchiveSD, &screen_buf);
if (size)
{
remake_file("/luma/splashbottom.bin", ArchiveSD, size);
buf_to_file(size, "/luma/splashbottom.bin", ArchiveSD, screen_buf);
free(screen_buf);
}