Make missimg members private, ifdef missing ids

This commit is contained in:
altalk23 2023-09-14 14:59:12 +03:00
parent 175f488c23
commit 1d53ce7695
4 changed files with 13 additions and 1 deletions

View file

@ -62,7 +62,7 @@ public:
)GEN"; )GEN";
// requires: type, member_name, array // requires: type, member_name, array
char const* member_definition = R"GEN(/*make this private when android headers are done*/{public} {type} {member_name};{public} char const* member_definition = R"GEN( {private} {type} {member_name};{public}
)GEN"; )GEN";
char const* pad_definition = R"GEN( GEODE_PAD({hardcode}); char const* pad_definition = R"GEN( GEODE_PAD({hardcode});

View file

@ -2,6 +2,8 @@
#include <Geode/modify/EditorPauseLayer.hpp> #include <Geode/modify/EditorPauseLayer.hpp>
#if !defined(GEODE_IS_ANDROID)
using namespace geode::prelude; using namespace geode::prelude;
// special class for this because making it a CCMenuItemToggler would be very UB // special class for this because making it a CCMenuItemToggler would be very UB
@ -272,3 +274,5 @@ struct EditorPauseLayerIDs : Modify<EditorPauseLayerIDs, EditorPauseLayer> {
return true; return true;
} }
}; };
#endif

View file

@ -4,6 +4,8 @@
#include <Geode/modify/LevelBrowserLayer.hpp> #include <Geode/modify/LevelBrowserLayer.hpp>
#include <Geode/utils/cocos.hpp> #include <Geode/utils/cocos.hpp>
#if !defined(GEODE_IS_ANDROID)
using namespace geode::prelude; using namespace geode::prelude;
$register_ids(LevelBrowserLayer) { $register_ids(LevelBrowserLayer) {
@ -171,3 +173,5 @@ struct LevelBrowserLayerIDs : Modify<LevelBrowserLayerIDs, LevelBrowserLayer> {
return true; return true;
} }
}; };
#endif

View file

@ -3,6 +3,8 @@
#include <Geode/binding/LevelInfoLayer.hpp> #include <Geode/binding/LevelInfoLayer.hpp>
#include <Geode/modify/LevelInfoLayer.hpp> #include <Geode/modify/LevelInfoLayer.hpp>
#if !defined(GEODE_IS_ANDROID)
$register_ids(LevelInfoLayer) { $register_ids(LevelInfoLayer) {
auto winSize = CCDirector::get()->getWinSize(); auto winSize = CCDirector::get()->getWinSize();
@ -135,3 +137,5 @@ struct LevelInfoLayerIDs : Modify<LevelInfoLayerIDs, LevelInfoLayer> {
return true; return true;
} }
}; };
#endif