Refactor command manager and editor includes for improved organization and functionality

This commit is contained in:
scawful
2024-11-18 14:05:54 -05:00
parent f54e5bf21c
commit f630aa88a2
4 changed files with 138 additions and 62 deletions

View File

@@ -2,7 +2,7 @@
#import "app/core/platform/app_delegate.h"
#import "app/core/controller.h"
#import "app/core/platform/file_dialog.h"
#import "app/editor/utils/editor.h"
#import "app/editor/editor.h"
#import "app/rom.h"
#if defined(__APPLE__) && defined(__MACH__)
@@ -225,6 +225,8 @@
NSLog(@"Open Recent File action triggered");
}
@end
extern "C" void yaze_initialize_cococa() {
@autoreleasepool {
AppDelegate *delegate = [[AppDelegate alloc] init];
@@ -250,8 +252,6 @@ extern "C" void yaze_run_cocoa_app_delegate(const char *filename) {
controller.OnExit();
}
@end
#endif
#endif