summaryrefslogtreecommitdiff
path: root/libs/JSystem/src/JHostIO/JORShellExecute.cpp
diff options
context:
space:
mode:
authorLuke Street <luke@street.dev>2026-03-01 15:35:36 -0700
committerGitHub <noreply@github.com>2026-03-01 14:35:36 -0800
commit9649319ec4926457ef85e6094f8207474c977c2d (patch)
tree1c5cd4c7cc4c1aee03f28921213da47f2775444d /libs/JSystem/src/JHostIO/JORShellExecute.cpp
parent6e149819e13b1f70ecbf8a4c66b030c17ffed2bb (diff)
Reorganize library code into `libs/` (#3119)
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN} * Update configure.py and project.py for new libs structure * Refactor `#include <dolphin/x.h>` -> `<x.h>` * Remove `__REVOLUTION_SDK__` forwards from dolphin * Fix dolphin/ references in revolution * Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__` * Always build TRK against dolphin headers * Resolve revolution SDK header resolution issues
Diffstat (limited to 'libs/JSystem/src/JHostIO/JORShellExecute.cpp')
-rw-r--r--libs/JSystem/src/JHostIO/JORShellExecute.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/JSystem/src/JHostIO/JORShellExecute.cpp b/libs/JSystem/src/JHostIO/JORShellExecute.cpp
new file mode 100644
index 0000000000..107c978e49
--- /dev/null
+++ b/libs/JSystem/src/JHostIO/JORShellExecute.cpp
@@ -0,0 +1,18 @@
+#include "JSystem/JSystem.h" // IWYU pragma: keep
+
+#include "JSystem/JHostIO/JORServer.h"
+
+int JORShellExecute(const char* param_0, const char* param_1, const char* param_2, const char* param_3, int param_4) {
+ int rt = 0;
+ JORServer* instance = JORServer::getInstance();
+
+ JORMContext* mctx = instance->attachMCTX(MCTX_MSG_SHELL_EXEC);
+ mctx->sendShellExecuteRequest(&rt, param_0, param_1, param_2, param_3, param_4);
+ instance->releaseMCTX(mctx);
+
+ while (rt == 0) {
+ JOR_MESSAGELOOP();
+ }
+
+ return rt;
+}