Skip to content

Commit

Permalink
wooo i love abi breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMario211 committed Jun 14, 2024
1 parent d01e92b commit edf3506
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ImGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
{
Expand All @@ -362,6 +363,7 @@ class $modify(MenuLayer) {
FLAlertLayer::create("Success!", "The <cy>theme</c> 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;
Expand Down
6 changes: 6 additions & 0 deletions src/UI/PrismUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cy>future update</c> for this to be fixed.", "OK")->show();
#if 0
file::pickFile(
file::PickMode::OpenFile,
{
Expand All @@ -461,11 +463,14 @@ void PrismUIButton::onBtn(CCObject* ret) {
FLAlertLayer::create("Success!", "The <cy>theme</c> 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 <cy>future update</c> for this to be fixed.", "OK")->show();
#if 0
file::pickFile(
file::PickMode::OpenFile,
{
Expand All @@ -485,6 +490,7 @@ void PrismUIButton::onBtn(CCObject* ret) {
FLAlertLayer::create("Success!", "The <cy>macro</c> has successfully been imported!", "OK")->show();
}
);
#endif
} else if (name == "Reset Speedhack") {
HackItem* speedHack = Hacks::getHack("Speedhack");
speedHack->value.floatValue = 1.0F;
Expand Down

0 comments on commit edf3506

Please sign in to comment.