Skip to content

Commit

Permalink
FIX THE FUCKING CRASH HOPEFULLY IF THIS DID THEN MY SUICIDE IS POSTPONED
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Nov 19, 2024
1 parent 6a9a5cb commit b23de22
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 1.7.5-beta.4


- Fixed crash when closing the mod popup

# 1.7.5-beta.3

Expand Down
3 changes: 2 additions & 1 deletion src/Client/Windows/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ void Config::cocosCreate(CCMenu* menu)
btnMenu->setScale(AndroidBall::clampf(Mod::get()->getSavedValue<float>("button-scale", 1), 0.2f, 1));
btnMenu->setContentSize(ccp(0, 0));

btnL = CCPastelLabelBMFont::create(">_", "bigFont.fnt");
//btnL = CCPastelLabelBMFont::create(">_", "bigFont.fnt");
btnL = CCLabelBMFont::create(">_", "bigFont.fnt");
btnL->setAnchorPoint(ccp(0.5f, 0.35f));

btn = CircleButtonSprite::create(btnL, CircleBaseColor::Gray);
Expand Down
12 changes: 12 additions & 0 deletions src/Layers/EditLabelPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,18 @@ void EditLabelPopup::updatePage()

void EditLabelPopup::onFont(CCObject* sender)
{
// #ifdef GEODE_IS_ANDROID
static bool hasShown = false;

if (!hasShown)
{
hasShown = true;

FLAlertLayer::create("Crash Warning", "Due to a bug in the <ca>geode</c> loader, opening this popup will <cc>likely</c> <cr>crash</c>.\nTo open this popup, press the button again.\n<cc>Do not report if this crashes!</c>\n<cl>(I know it does)</c>", "OK")->show();

return;
}

ChooseFontPopup::addToScene([this](std::string font)
{
log::info("selected font: {}", font);
Expand Down

0 comments on commit b23de22

Please sign in to comment.