Fix error for loading icon image at start up
This commit is contained in:
parent
9b44117729
commit
8274029e03
@ -1404,6 +1404,7 @@ bool Main::start() {
|
|||||||
|
|
||||||
String iconpath = GLOBAL_DEF("application/icon", "Variant()");
|
String iconpath = GLOBAL_DEF("application/icon", "Variant()");
|
||||||
if (iconpath != "") {
|
if (iconpath != "") {
|
||||||
|
iconpath = PathRemap::get_singleton()->get_remap(iconpath);
|
||||||
Image icon;
|
Image icon;
|
||||||
if (icon.load(iconpath) == OK)
|
if (icon.load(iconpath) == OK)
|
||||||
OS::get_singleton()->set_icon(icon);
|
OS::get_singleton()->set_icon(icon);
|
||||||
|
Loading…
Reference in New Issue
Block a user