Skip to content

Commit

Permalink
Updated syscall implementation for Sys::shellexec()
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed May 20, 2024
1 parent a300487 commit 3949666
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/librishka/sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class Sys final {
* @param argv The array of arguments for the shell command.
* @return The exit status of the shell command.
*/
static i64 shellexec(string program, i32 argc, string* argv);
static i64 shellexec(string cmdline);

/**
* @brief Terminate the application with an exit code.
Expand Down
4 changes: 2 additions & 2 deletions sdk/librishka_sys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ u64 Sys::millis() {
return (u64) rishka_sc_0(RISHKA_SC_SYS_MILLIS);
}

i64 Sys::shellexec(string program, i32 argc, string* argv) {
return (i64) rishka_sc_3(RISHKA_SC_SYS_SHELLEXEC, (i64) program, (i64) argc, (i64) argv);
i64 Sys::shellexec(string cmdline) {
return (i64) rishka_sc_1(RISHKA_SC_SYS_SHELLEXEC, (i64) cmdline);
}

void Sys::exit(i32 code) {
Expand Down

0 comments on commit 3949666

Please sign in to comment.