diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-01-09 14:44:31 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-01-09 14:44:31 -0500 |
| commit | b76e309166f714b0a66fb4802f02e92a82d09082 (patch) | |
| tree | 44244fc0e6f873e1ccf6e1e95e2fec62fcec394a /editor/main.cpp | |
| parent | b04fefe8ee0086bc1404c06b8351ecb4e942f151 (diff) | |
flatten file structure + rename
Diffstat (limited to 'editor/main.cpp')
| -rw-r--r-- | editor/main.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
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 <csignal> - -#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; -} |
