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.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor-main.cpp b/editor/editor-main.cpp
index a037ca6..9bb6d8f 100644
--- a/editor/editor-main.cpp
+++ b/editor/editor-main.cpp
@@ -18,6 +18,8 @@ int main(int argc, char *argv[]) {
fflush(stderr);
fprintf(stdout, "\rPKE_EDITOR ENTERING\n");
fprintf(stderr, "\r");
+ // HACK
+ struct pk_membucket *bkt_editor = pk_mem_bucket_create("pke-editor", 2048, PK_MEMBUCKET_FLAG_NONE);
// setup
{
pkeSettings.isSimulationPaused = true;
@@ -27,11 +29,14 @@ int main(int argc, char *argv[]) {
itfc.OnTick = PkeEditor_Tick;
itfc.OnTeardown = PkeEditor_Teardown;
itfc.OnImGuiRender = PkeEditor_RecordImGui;
+ // HACK
+ LoadedPkePlugins.bkt = bkt_editor;
pk_arr_append(&LoadedPkePlugins, &itfc);
}
// run
PkeArgs_Parse(argc, argv);
Game_Main({}, argv[0]);
+ pk_mem_bucket_destroy(bkt_editor);
fprintf(stdout, "PKE_EDITOR EXITING\n");
return 0;
}