From b76e309166f714b0a66fb4802f02e92a82d09082 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 9 Jan 2025 14:44:31 -0500 Subject: flatten file structure + rename --- editor/main.cpp | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 editor/main.cpp (limited to 'editor/main.cpp') diff --git a/editor/main.cpp b/editor/main.cpp deleted file mode 100644 index 2dee016..0000000 --- a/editor/main.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include - -#include "arg-handler.hpp" -#include "plugins.hpp" -#include "editor.hpp" -#include "event.hpp" -#include "game.hpp" -#include "game-settings.hpp" -#include "window-types.hpp" - -void signal_handler(int signal_num) { - fprintf(stdout, "Received signal: %d - shutting down\n", signal_num); - pkeSettings.isGameRunning = false; -} - -int main(int argc, char *argv[]) { - signal(SIGTERM, signal_handler); - fflush(stdout); - fflush(stderr); - fprintf(stdout, "\rPKE_EDITOR ENTERING\n"); - fprintf(stderr, "\r"); - // setup - { - pkeSettings.isSimulationPaused = true; - pkeSettings.isShowingEditor = true; - LoadedPkePlugins.Push({ - .OnInit = PkeEditor_Init, - .OnTick = PkeEditor_Tick, - .OnTeardown = PkeEditor_Teardown, - .OnImGuiRender = PkeEditor_RecordImGui, - }); - } - // run - PkeArgs_Parse(argc, argv); - Game_Main({}, argv[0]); - fprintf(stdout, "PKE_EDITOR EXITING\n"); - return 0; -} -- cgit v1.2.3