|
|
@@ -13,7 +13,9 @@ |
|
|
|
#include <app/Scene.hpp> |
|
|
|
#include <plugin.hpp> |
|
|
|
#include <context.hpp> |
|
|
|
#include <window.hpp> |
|
|
|
#include <patch.hpp> |
|
|
|
#include <history.hpp> |
|
|
|
#include <ui.hpp> |
|
|
|
#include <system.hpp> |
|
|
|
#include <string.hpp> |
|
|
@@ -174,7 +176,15 @@ int main(int argc, char* argv[]) { |
|
|
|
// Initialize context |
|
|
|
INFO("Initializing context"); |
|
|
|
contextSet(new Context); |
|
|
|
APP->init(); |
|
|
|
APP->engine = new engine::Engine; |
|
|
|
APP->patch = new PatchManager; |
|
|
|
if (!settings::headless) { |
|
|
|
APP->event = new event::State; |
|
|
|
APP->history = new history::State; |
|
|
|
APP->window = new Window; |
|
|
|
APP->scene = new app::Scene; |
|
|
|
APP->event->rootWidget = APP->scene; |
|
|
|
} |
|
|
|
|
|
|
|
// On Mac, use a hacked-in GLFW addition to get the launched path. |
|
|
|
#if defined ARCH_MAC |
|
|
|