set hook priority in fallback loading layer too

This commit is contained in:
ConfiG 2024-02-03 20:12:31 +03:00
parent 8b302f8139
commit 1be7a997a1
No known key found for this signature in database
GPG key ID: 44DA1983F524C11B

View file

@ -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;