Skip to content

Commit 8186fab

Browse files
committed
Merge pull request godotengine#96197 from jsjtxietian/splash-msg
Improve error message when loading non-PNG splash image
2 parents ad0edb8 + c7a0e39 commit 8186fab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3394,7 +3394,8 @@ void Main::setup_boot_logo() {
33943394
boot_logo.instantiate();
33953395
Error load_err = ImageLoader::load_image(boot_logo_path, boot_logo);
33963396
if (load_err) {
3397-
ERR_PRINT("Non-existing or invalid boot splash at '" + boot_logo_path + "'. Loading default splash.");
3397+
String msg = (boot_logo_path.ends_with(".png") ? "" : "The only supported format is PNG.");
3398+
ERR_PRINT("Non-existing or invalid boot splash at '" + boot_logo_path + +"'. " + msg + " Loading default splash.");
33983399
}
33993400
}
34003401
} else {

0 commit comments

Comments
 (0)