Add is png check and better err msg when loading splash imgae
This commit is contained in:
parent
28a72fa434
commit
c7a0e39af1
1 changed files with 2 additions and 1 deletions
|
@ -3307,7 +3307,8 @@ void Main::setup_boot_logo() {
|
||||||
boot_logo.instantiate();
|
boot_logo.instantiate();
|
||||||
Error load_err = ImageLoader::load_image(boot_logo_path, boot_logo);
|
Error load_err = ImageLoader::load_image(boot_logo_path, boot_logo);
|
||||||
if (load_err) {
|
if (load_err) {
|
||||||
ERR_PRINT("Non-existing or invalid boot splash at '" + boot_logo_path + "'. Loading default splash.");
|
String msg = (boot_logo_path.ends_with(".png") ? "" : "The only supported format is PNG.");
|
||||||
|
ERR_PRINT("Non-existing or invalid boot splash at '" + boot_logo_path + +"'. " + msg + " Loading default splash.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue