check for texture loader's fallback

This commit is contained in:
matcool 2024-06-17 12:02:33 -03:00
parent 626a65cb38
commit a421047d16

View file

@ -118,7 +118,7 @@ protected:
m_sprite->removeFromParent();
}
// Fallback to default logo if the sprite is null
if (!sprite) {
if (!sprite || sprite->getUserObject("geode.texture-loader/fallback")) {
sprite = CCLabelBMFont::create("N/A", "bigFont.fnt");
static_cast<CCLabelBMFont*>(sprite)->setOpacity(90);
}