Skip to content

Commit 3949666

Browse files
committed
Updated syscall implementation for Sys::shellexec()
1 parent a300487 commit 3949666

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sdk/librishka/sys.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class Sys final {
134134
* @param argv The array of arguments for the shell command.
135135
* @return The exit status of the shell command.
136136
*/
137-
static i64 shellexec(string program, i32 argc, string* argv);
137+
static i64 shellexec(string cmdline);
138138

139139
/**
140140
* @brief Terminate the application with an exit code.

sdk/librishka_sys.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ u64 Sys::millis() {
3030
return (u64) rishka_sc_0(RISHKA_SC_SYS_MILLIS);
3131
}
3232

33-
i64 Sys::shellexec(string program, i32 argc, string* argv) {
34-
return (i64) rishka_sc_3(RISHKA_SC_SYS_SHELLEXEC, (i64) program, (i64) argc, (i64) argv);
33+
i64 Sys::shellexec(string cmdline) {
34+
return (i64) rishka_sc_1(RISHKA_SC_SYS_SHELLEXEC, (i64) cmdline);
3535
}
3636

3737
void Sys::exit(i32 code) {

0 commit comments

Comments
 (0)