Check for custom images in app directory

This commit is contained in:
Huntereb 2019-11-16 13:22:05 -05:00
parent 33e9e59f2a
commit 86497d5972
2 changed files with 4 additions and 2 deletions

View file

@ -22,7 +22,8 @@ namespace inst::ui {
this->installInfoText->SetColor(COLOR("#FFFFFFFF"));
this->installBar = pu::ui::elm::ProgressBar::New(10, 600, 800, 40, 100.0f);
this->installBar->SetColor(COLOR("#222222FF"));
this->awooImage = Image::New(510, 166, "romfs:/awoos/7d8a05cddfef6da4901b20d2698d5a71.png");
if (std::filesystem::exists(inst::config::appDir + "/awoo_inst.png")) this->awooImage = Image::New(410, 190, inst::config::appDir + "/awoo_inst.png");
else this->awooImage = Image::New(510, 166, "romfs:/awoos/7d8a05cddfef6da4901b20d2698d5a71.png");
this->Add(this->topRect);
this->Add(this->infoRect);
this->Add(this->titleImage);

View file

@ -38,7 +38,8 @@ namespace inst::ui {
this->exitMenuItem = pu::ui::elm::MenuItem::New("Exit");
this->exitMenuItem->SetColor(COLOR("#FFFFFFFF"));
this->exitMenuItem->SetIcon("romfs:/exit-run.png");
this->awooImage = Image::New(410, 190, "romfs:/awoos/5bbdbcf9a5625cd307c9e9bc360d78bd.png");
if (std::filesystem::exists(inst::config::appDir + "/awoo_main.png")) this->awooImage = Image::New(410, 190, inst::config::appDir + "/awoo_main.png");
else this->awooImage = Image::New(410, 190, "romfs:/awoos/5bbdbcf9a5625cd307c9e9bc360d78bd.png");
this->eggImage = Image::New(410, 190, "romfs:/awoos/a8cb40e465dadaf9708c9b1896777ce6.png");
this->Add(this->topRect);
this->Add(this->botRect);