summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-12-06 15:49:15 -0500
committerJonathan Bradley <jcb@pikum.xyz>2023-12-06 15:49:15 -0500
commit0a9b08fcaf0fde28af66b59a76881032587b582c (patch)
tree6fda392cd47fdd7560fcfd7c1f5d0f5f4f702630 /editor
parent04c97b83505e685d590c28c7605128716f3333ff (diff)
track executable path
Diffstat (limited to 'editor')
-rw-r--r--editor/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/main.cpp b/editor/main.cpp
index ce689e8..a431183 100644
--- a/editor/main.cpp
+++ b/editor/main.cpp
@@ -12,7 +12,7 @@ void signal_handler(int signal_num) {
pkeSettings.isGameRunning = false;
}
-int main() {
+int main(int argc, char *argv[]) {
signal(SIGTERM, signal_handler);
fflush(stdout);
fflush(stderr);
@@ -28,7 +28,7 @@ int main() {
pkePlugin.OnImGuiRender = PkeEditor_RecordImGui;
}
// run
- Game_Main({});
+ Game_Main({}, argv[0]);
fprintf(stdout, "PKE_EDITOR EXITING\n");
return 0;
}