2
0
Fork 0

Fix error for loading icon image at start up

2.1
volzhs 2017-04-18 04:16:17 +07:00
parent 9b44117729
commit 8274029e03
1 changed files with 1 additions and 0 deletions

@ -1404,6 +1404,7 @@ bool Main::start() {
String iconpath = GLOBAL_DEF("application/icon", "Variant()");
if (iconpath != "") {
iconpath = PathRemap::get_singleton()->get_remap(iconpath);
Image icon;
if (icon.load(iconpath) == OK)
OS::get_singleton()->set_icon(icon);