Skip to content

Commit

Permalink
g
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Aug 29, 2024
1 parent 33c01d3 commit abac039
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Fixed infamous all modes platformer crash
- Fixed Hitbox Trail saving the trail when show hitboxes is disabled
- Fixed Show Hitboxes not working if prism menu is enabled
- Fixed incompatibility with XDBot rewrite
- Lowered Max Hitbox Trail count to 200 instead of 500 for performance reasons
- Added **Decimals to Best Run**
- Added **Hide From % from 0 to Best Run**
Expand Down
28 changes: 26 additions & 2 deletions src/Hacks/NoCheckpointLimit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,36 @@ using namespace geode::prelude;

class $modify (PlayLayer)
{
static void onModify(auto& self) {
self.setHookPriority("PlayLayer::storeCheckpoint", 99999999999999999);

std::vector<geode::Hook*> hooks;

if (self.m_hooks.empty())
return;

for (auto hook : self.m_hooks)
{
hooks.push_back(hook.second.get());
}

Loader::get()->queueInMainThread([hooks]
{
auto modu = Client::GetModule("no-checkpoint-limit");
for (auto hook : hooks)
{
if (hook)
{
modu->addHook(hook);
}
}
});
}

void storeCheckpoint(CheckpointObject* cp)
{
m_checkpointArray->addObject(cp);

PlayLayer::addToSection(cp->m_physicalCheckpointObject);
}

QOLMOD_MOD_ALL_HOOKS("no-checkpoint-limit")
};

0 comments on commit abac039

Please sign in to comment.