Skip to content

Commit dadd57b

Browse files
committed
tweaks
1 parent 4c6f84e commit dadd57b

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

include/OptionalAPI.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
#define MY_MOD_ID "arcticwoof.horrible_ideas"
1212

1313
namespace horrible {
14-
struct OptionEventV2 final : geode::Event<OptionEventV2, bool(std::string, bool)> {
15-
using Event::Event;
16-
};
17-
1814
class OptionManagerV2 final {
1915
public:
2016
static geode::Result<> registerOption(Option const& option)

include/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# [<img src="../logo.png" width="30" alt="The mod's logo." />](https://www.geode-sdk.org/mods/arcticwoof.horrible_ideas) Horrible Ideas
22
A plethora of ways to ruin your gaming experience...
33

4+
> [!WARNING]
5+
> This is heavily outdated.
6+
47
## API
58
Let's start off by adding this mod as a dependency in your `mod.json`!
69
```jsonc

src/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,20 @@ using namespace horrible::prelude;
4848
);
4949

5050
(void)horribleMod->registerCustomSettingType("menu", &HorribleSettingV3::parse);
51+
52+
if (auto fb = OptionMenuButton::get()) OverlayManager::get()->addChild(fb);
5153
};
5254

5355
class $modify(HIMenuLayer, MenuLayer) {
5456
bool init() {
5557
if (!MenuLayer::init()) return false;
5658

57-
if (auto fb = OptionMenuButton::get()) OverlayManager::get()->addChild(fb);
58-
5959
if (auto gm = GameManager::get()) {
6060
// get and store user current fps
6161
float currentFPS = gm->m_customFPSTarget;
62-
float storedFPS = horribleMod->setSavedValue<float>("fps", currentFPS);
62+
(void)horribleMod->setSavedValue<float>("fps", currentFPS);
6363

64-
log::debug("Store Current FPS: {}", storedFPS);
64+
log::debug("Store Current FPS: {}", currentFPS);
6565
};
6666

6767
return true;

0 commit comments

Comments
 (0)