diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-03-20 15:30:13 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-03-21 11:06:05 -0400 |
| commit | e6e7f56c9bba3b2191583c4c1d0599370d1f00c7 (patch) | |
| tree | 27476da693d9e75d920a698d57b74699f9f81c7a /editor/editor-main.cpp | |
| parent | 9b39b4c8eab360e087423f06ecffb694a3b98b23 (diff) | |
pke: replace PkeArray with pk_arr_t
Diffstat (limited to 'editor/editor-main.cpp')
| -rw-r--r-- | editor/editor-main.cpp | 13 |
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); |
