File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33using namespace object_collab ::prelude;
44using namespace geode ::prelude;
55
6- void ModEditorPauseLayer::onModify (auto & self) {
7- (void ) self.setHookPriorityBeforePre (" EditorPauseLayer::saveLevel" , " alphalaneous.level-storage-api" );
8- }
9-
106bool ModEditorPauseLayer::init (LevelEditorLayer* layer) {
117 if (!EditorPauseLayer::init (layer)) return false ;
128
Original file line number Diff line number Diff line change 44#include < Geode/modify/EditorPauseLayer.hpp>
55
66class $modify(ModEditorPauseLayer, EditorPauseLayer) {
7- static void onModify (auto & self);
7+ static void onModify (auto & self) {
8+ (void ) self.setHookPriorityBeforePre (" EditorPauseLayer::saveLevel" , " alphalaneous.level-storage-api" );
9+ }
810
911 $override bool init (LevelEditorLayer* layer);
1012 $override void saveLevel ();
Original file line number Diff line number Diff line change @@ -6,10 +6,6 @@ using namespace geode::prelude;
66
77EditorUI* ModEditorUI::INSTANCE = nullptr ;
88
9- void ModEditorUI::onModify (auto & self) {
10- (void ) self.setHookPriorityAfterPost (" EditorUI::init" , " hjfod.betteredit" );
11- }
12-
139EditorUI* ModEditorUI::getEarly () {
1410 return ModEditorUI::INSTANCE ;
1511}
Original file line number Diff line number Diff line change 77class $modify(ModEditorUI, EditorUI) {
88 static EditorUI* INSTANCE ;
99public:
10- static void onModify (auto & self);
10+ static void onModify (auto & self) {
11+ (void ) self.setHookPriorityAfterPost (" EditorUI::init" , " hjfod.betteredit" );
12+ }
1113
1214 static EditorUI* getEarly ();
1315
You can’t perform that action at this time.
0 commit comments