mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
fix alk's commit 2
This commit is contained in:
parent
b0e5588419
commit
8b302f8139
1 changed files with 5 additions and 4 deletions
|
@ -21,11 +21,9 @@ struct CustomLoadingLayer : Modify<CustomLoadingLayer, LoadingLayer> {
|
|||
if (!self.setHookPriority("LoadingLayer::init", geode::node_ids::GEODE_ID_PRIORITY)) {
|
||||
log::warn("Failed to set LoadingLayer::init hook priority, node IDs may not work properly");
|
||||
}
|
||||
GEODE_FORWARD_COMPAT_DISABLE_HOOKS_INNER("LoadingLayer stuff disabled")
|
||||
GEODE_FORWARD_COMPAT_DISABLE_HOOKS_INNER("Switching to fallback custom loading layer")
|
||||
}
|
||||
|
||||
GEODE_FORWARD_COMPAT_DISABLE_HOOKS("Switching to fallback custom loading layer")
|
||||
|
||||
void updateLoadedModsLabel() {
|
||||
auto allMods = Loader::get()->getAllMods();
|
||||
auto count = std::count_if(allMods.begin(), allMods.end(), [&](auto& item) {
|
||||
|
@ -209,9 +207,12 @@ struct FallbackCustomLoadingLayer : Modify<FallbackCustomLoadingLayer, CCLayer>
|
|||
bool init() {
|
||||
if (!CCLayer::init())
|
||||
return false;
|
||||
if (!typeinfo_cast<LoadingLayer*>(this))
|
||||
auto* self = typeinfo_cast<LoadingLayer*>(this);
|
||||
if (!self)
|
||||
return true;
|
||||
|
||||
NodeIDs::provideFor(self);
|
||||
|
||||
auto winSize = CCDirector::sharedDirector()->getWinSize();
|
||||
|
||||
auto label = CCLabelBMFont::create(
|
||||
|
|
Loading…
Reference in a new issue