1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-05 19:51:45 +00:00

fusee: Fix custom splash screen loading.

This commit is contained in:
hexkyz 2018-11-19 20:05:47 +00:00 committed by GitHub
parent 77bbb0ef78
commit 982797df31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ void display_splash_screen_bmp(const char *custom_splash_path, void *fb_address)
/* Try to load an external custom splash screen. */ /* Try to load an external custom splash screen. */
if ((custom_splash_path != NULL) && (custom_splash_path[0] != '\x00')) { if ((custom_splash_path != NULL) && (custom_splash_path[0] != '\x00')) {
if (!read_from_file(splash_screen, sizeof(&splash_screen_bmp), custom_splash_path)) { if (!read_from_file(splash_screen, splash_screen_bmp_size, custom_splash_path)) {
fatal_error("Failed to read custom splash screen from %s!\n", custom_splash_path); fatal_error("Failed to read custom splash screen from %s!\n", custom_splash_path);
} }
} }