From 28c1f86dcd059ff4ce8d14d9c9a00c9c35b1b6f0 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 21 Dec 2023 17:18:13 -0500 Subject: execvp expects the program itself as the first argument --- editor/editor.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/editor.cpp') diff --git a/editor/editor.cpp b/editor/editor.cpp index 7bb972c..f5e0d8d 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -103,6 +103,7 @@ void PkeEditor_Tick(double delta) { if (pid == 0) { int status = -1; const char *argv[] = { + "pke_runtime", "--plugin", pkeSettings.args.pluginPath == nullptr ? "example.o" : pkeSettings.args.pluginPath, "--project", pkeSettings.args.projectPath == nullptr ? PKE_PROJ_DEFAULT_FILENAME : pkeSettings.args.projectPath, "--scene", pkeSettings.rt.sceneName == nullptr ? PKE_PROJ_DEFAULT_FILENAME : pkeSettings.rt.sceneName, -- cgit v1.2.3