refactor(app): reorganize application structure and update includes

- Moved core components such as `Controller` and `Window` from `src/app/core/` to `src/app/` and `src/app/platform/`, respectively, to improve modularity and clarity.
- Updated include paths across the codebase to reflect the new locations of these components.
- Introduced a new foundational core library in `src/core/` for project management and ROM patching logic, enhancing the separation of concerns.
- Adjusted CMake configurations to ensure proper compilation of the new core library and updated dependencies in various modules.

Benefits:
- Streamlines the application structure, making it easier to navigate and maintain.
- Enhances code organization by clearly delineating core functionalities from application-specific logic.
- Improves overall architecture by promoting a clearer separation of concerns between different components.
This commit is contained in:
scawful
2025-10-15 20:10:04 -04:00
parent 066ffa46e2
commit d45f7819e1
88 changed files with 393 additions and 290 deletions

View File

@@ -31,10 +31,10 @@
#include <vector>
#include <algorithm>
#include "app/core/controller.h"
#include "app/controller.h"
#include "app/platform/app_delegate.h"
#include "app/platform/font_loader.h"
#include "app/core/window.h"
#include "app/platform/window.h"
#include "app/rom.h"
#include <SDL.h>
@@ -101,7 +101,7 @@
SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1");
// Create and initialize controller with modern API
_controller = new yaze::core::Controller();
_controller = new yaze::Controller();
auto init_status = _controller->OnEntry(rom_filename);
if (!init_status.ok()) {
NSLog(@"Failed to initialize controller: %s", init_status.message().data());