From edf35061c7785ccad6731244d2e10b6b4097fd69 Mon Sep 17 00:00:00 2001 From: FireMario211 <17692105+FireMario211@users.noreply.github.com> Date: Fri, 14 Jun 2024 18:49:23 -0400 Subject: [PATCH] wooo i love abi breakage --- src/ImGui.cpp | 2 ++ src/UI/PrismUI.cpp | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/ImGui.cpp b/src/ImGui.cpp index f403e64..f7dc87c 100644 --- a/src/ImGui.cpp +++ b/src/ImGui.cpp @@ -346,6 +346,7 @@ class $modify(MenuLayer) { geode::FileSetting::Filter filter; filter.description = "Theme (*.json)"; filter.files.insert("*.json"); +#if 0 file::pickFile( file::PickMode::OpenFile, { @@ -362,6 +363,7 @@ class $modify(MenuLayer) { FLAlertLayer::create("Success!", "The theme has successfully been imported! Restart your game to use it.", "OK")->show(); } ); +#endif } else if (name == "Reset Speedhack") { HackItem* speedHack = Hacks::getHack("Speedhack"); speedHack->value.floatValue = 1.0F; diff --git a/src/UI/PrismUI.cpp b/src/UI/PrismUI.cpp index 211492f..0069d9c 100644 --- a/src/UI/PrismUI.cpp +++ b/src/UI/PrismUI.cpp @@ -442,6 +442,8 @@ void PrismUIButton::onBtn(CCObject* ret) { geode::FileSetting::Filter filter; filter.description = "Theme (*.json)"; filter.files.insert("*.json"); + FLAlertLayer::create("Error", "Please wait until a future update for this to be fixed.", "OK")->show(); +#if 0 file::pickFile( file::PickMode::OpenFile, { @@ -461,11 +463,14 @@ void PrismUIButton::onBtn(CCObject* ret) { FLAlertLayer::create("Success!", "The theme has successfully been imported! Restart your game to use it.", "OK")->show(); } ); +#endif } else if (name == "Import Macro") { geode::FileSetting::Filter filter; filter.description = "Macro (*.gdr)"; filter.files.insert("*.gdr.json"); filter.files.insert("*.gdr"); + FLAlertLayer::create("Error", "Please wait until a future update for this to be fixed.", "OK")->show(); +#if 0 file::pickFile( file::PickMode::OpenFile, { @@ -485,6 +490,7 @@ void PrismUIButton::onBtn(CCObject* ret) { FLAlertLayer::create("Success!", "The macro has successfully been imported!", "OK")->show(); } ); +#endif } else if (name == "Reset Speedhack") { HackItem* speedHack = Hacks::getHack("Speedhack"); speedHack->value.floatValue = 1.0F;