Skip to content

Commit

Permalink
2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiLko committed Nov 16, 2024
1 parent d9816b7 commit 6bb95fd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v2.1.2

* Made BetterInputs warning only happen for the first time.

# v2.1.1

* gode 4.0.0-beta.1
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"win": "2.2074",
"android": "2.2074"
},
"version": "v2.1.1",
"version": "v2.1.2",
"id": "zilko.xdbot",
"name": "xdBot",
"developer": "Zilko",
Expand Down
3 changes: 1 addition & 2 deletions src/includes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,4 @@ class Global {
int currentPage = 0;
float currentPitch = 1.f;
uintptr_t latestSeed = 0;
};

};
2 changes: 1 addition & 1 deletion src/macro.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const std::vector<float> safeValues = {
1.0f / 5, 1.0f / 4, 1.0f / 3, 1.0f / 2
};

const std::string xdBotVersion = "v2.1.1";
const std::string xdBotVersion = "v2.1.2";

enum state {
none,
Expand Down
6 changes: 4 additions & 2 deletions src/ui/record_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ RecordLayer* RecordLayer::openMenu(bool instant) {

g.layer = static_cast<geode::Popup<>*>(layer);

if (Loader::get()->isModLoaded("spaghettdev.betterinputs") && !instant)
FLAlertLayer::create("Warning", "<cr>BetterInputs</c> might cause <cr>undefined behavior</c> in xdBot's text inputs.", "Ok")->show();
if (Loader::get()->isModLoaded("spaghettdev.betterinputs") && !instant) {
if (!g.mod->setSavedValue("betterinputs-warning", true))
FLAlertLayer::create("Warning", "<cr>BetterInputs</c> might cause <cr>undefined behavior</c> in xdBot's text inputs.", "Ok")->show();
}

return layer;
}
Expand Down

0 comments on commit 6bb95fd

Please sign in to comment.