mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 07:57:51 -05:00
set hook priority in fallback loading layer too
This commit is contained in:
parent
8b302f8139
commit
1be7a997a1
1 changed files with 7 additions and 1 deletions
|
@ -203,7 +203,13 @@ struct CustomLoadingLayer : Modify<CustomLoadingLayer, LoadingLayer> {
|
|||
};
|
||||
|
||||
struct FallbackCustomLoadingLayer : Modify<FallbackCustomLoadingLayer, CCLayer> {
|
||||
GEODE_FORWARD_COMPAT_ENABLE_HOOKS("")
|
||||
static void onModify(const auto& self) {
|
||||
GEODE_FORWARD_COMPAT_ENABLE_HOOKS_INNER("")
|
||||
else if (!self.setHookPriority("CCLayer::init", geode::node_ids::GEODE_ID_PRIORITY)) {
|
||||
log::warn("Failed to set CCLayer::init hook priority, node IDs may not work properly");
|
||||
}
|
||||
}
|
||||
|
||||
bool init() {
|
||||
if (!CCLayer::init())
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue