From c349359e71170c2fa78ac0fa22df07932ab47210 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 5 Dec 2023 13:07:57 -0500 Subject: minor refactor for plugins --- editor/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'editor/main.cpp') diff --git a/editor/main.cpp b/editor/main.cpp index 54c7607..c0cc7c0 100644 --- a/editor/main.cpp +++ b/editor/main.cpp @@ -1,5 +1,6 @@ #include +#include "plugins.hpp" #include "editor.hpp" #include "event.hpp" #include "game.hpp" @@ -17,10 +18,10 @@ int main() { // setup { pkeSettings.isShowingEditor = true; - pkeGameCallbacks.OnInit = PkeEditor_Init; - pkeGameCallbacks.OnTick = PkeEditor_Tick; - pkeGameCallbacks.OnTeardown = PkeEditor_Teardown; - pkeGameCallbacks.OnImGuiRender = PkeEditor_RecordImGui; + pkePlugin.OnInit = PkeEditor_Init; + pkePlugin.OnTick = PkeEditor_Tick; + pkePlugin.OnTeardown = PkeEditor_Teardown; + pkePlugin.OnImGuiRender = PkeEditor_RecordImGui; } // run Game_Main({}); -- cgit v1.2.3