|
@@ -182,14 +182,14 @@ int main(int argc, char* argv[]) { |
|
|
INFO("Initializing context"); |
|
|
INFO("Initializing context"); |
|
|
contextSet(new Context); |
|
|
contextSet(new Context); |
|
|
APP->engine = new engine::Engine; |
|
|
APP->engine = new engine::Engine; |
|
|
|
|
|
APP->history = new history::State; |
|
|
|
|
|
APP->event = new widget::EventState; |
|
|
|
|
|
APP->scene = new app::Scene; |
|
|
|
|
|
APP->event->rootWidget = APP->scene; |
|
|
|
|
|
APP->patch = new PatchManager; |
|
|
if (!settings::headless) { |
|
|
if (!settings::headless) { |
|
|
APP->event = new widget::EventState; |
|
|
|
|
|
APP->history = new history::State; |
|
|
|
|
|
APP->window = new Window; |
|
|
APP->window = new Window; |
|
|
APP->scene = new app::Scene; |
|
|
|
|
|
APP->event->rootWidget = APP->scene; |
|
|
|
|
|
} |
|
|
} |
|
|
APP->patch = new PatchManager; |
|
|
|
|
|
|
|
|
|
|
|
// On Mac, use a hacked-in GLFW addition to get the launched path. |
|
|
// On Mac, use a hacked-in GLFW addition to get the launched path. |
|
|
#if defined ARCH_MAC |
|
|
#if defined ARCH_MAC |
|
|