summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-01-13 10:10:38 -0500
committerJonathan Bradley <jcb@pikum.xyz>2025-01-13 10:10:38 -0500
commitcd08d8490bde91c36a6c7a60a27bed0bd0e2e033 (patch)
treecaced19ec83457ef686e8d143a78ec939b50df81 /editor
parent28859014c99aacc1b547df9adebb2b92233ed837 (diff)
editor: launch scene call renamed pke-runtime
Diffstat (limited to 'editor')
-rw-r--r--editor/editor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp
index 8a2390b..af45fda 100644
--- a/editor/editor.cpp
+++ b/editor/editor.cpp
@@ -95,22 +95,22 @@ void PkeEditor_Tick(double delta) {
if (subProgramPid == 0) {
int status = -1;
const char *argv[] = {
- "pke_runtime",
- "--plugin", pkeSettings.args.pluginPath == nullptr ? "example.o" : pkeSettings.args.pluginPath,
+ "pke-runtime",
+ "--plugin", pkeSettings.args.pluginPath == nullptr ? "libpke-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,
NULL,
};
- status = execvp("pke_runtime", const_cast<char **>(argv));
- fprintf(stderr, "pke_runtime (child) exited with a status of %i\n", status);
+ status = execvp("pke-runtime", const_cast<char **>(argv));
+ fprintf(stderr, "pke-runtime (child) exited with a status of %i\n", status);
subProgramPid = -1;
} else if (subProgramPid == -1) {
- fprintf(stdout, "pke_runtime failed to fork\n");
+ fprintf(stdout, "pke-runtime failed to fork\n");
subProgramPid = -1;
} else {
int status = 0xCAFEBABE;
waitpid(subProgramPid, &status, 0);
- fprintf(stdout, "pke_runtime (parent) exited with a status of %i (0x%08X)\n", status, status);
+ fprintf(stdout, "pke-runtime (parent) exited with a status of %i (0x%08X)\n", status, status);
subProgramPid = -1;
}
});