summaryrefslogtreecommitdiff
path: root/editor/editor-main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor-main.cpp')
-rw-r--r--editor/editor-main.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/editor/editor-main.cpp b/editor/editor-main.cpp
index 4e26472..a037ca6 100644
--- a/editor/editor-main.cpp
+++ b/editor/editor-main.cpp
@@ -1,5 +1,6 @@
#include <csignal>
+#include "pk.h"
#include "arg-handler.hpp"
#include "plugins.hpp"
#include "editor.hpp"
@@ -21,12 +22,12 @@ int main(int argc, char *argv[]) {
{
pkeSettings.isSimulationPaused = true;
pkeSettings.isShowingEditor = true;
- LoadedPkePlugins.Push({
- .OnInit = PkeEditor_Init,
- .OnTick = PkeEditor_Tick,
- .OnTeardown = PkeEditor_Teardown,
- .OnImGuiRender = PkeEditor_RecordImGui,
- });
+ PKEPluginInterface itfc;
+ itfc.OnInit = PkeEditor_Init;
+ itfc.OnTick = PkeEditor_Tick;
+ itfc.OnTeardown = PkeEditor_Teardown;
+ itfc.OnImGuiRender = PkeEditor_RecordImGui;
+ pk_arr_append(&LoadedPkePlugins, &itfc);
}
// run
PkeArgs_Parse(argc, argv);