- 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.
20 lines
503 B
C++
20 lines
503 B
C++
#include "test_utils.h"
|
|
#include "app/controller.h"
|
|
|
|
namespace yaze {
|
|
namespace test {
|
|
namespace gui {
|
|
|
|
void LoadRomInTest(ImGuiTestContext* ctx, const std::string& rom_path) {
|
|
yaze::Controller* controller = (yaze::Controller*)ctx->Test->UserData;
|
|
controller->OnEntry(rom_path);
|
|
}
|
|
|
|
void OpenEditorInTest(ImGuiTestContext* ctx, const std::string& editor_name) {
|
|
ctx->MenuClick(absl::StrFormat("Editors/%s", editor_name).c_str());
|
|
}
|
|
|
|
} // namespace gui
|
|
} // namespace test
|
|
} // namespace yaze
|