From 3949666127490191958ceda00a5e10579a66d273 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Mon, 20 May 2024 17:56:48 +0800 Subject: [PATCH] Updated syscall implementation for Sys::shellexec() --- sdk/librishka/sys.h | 2 +- sdk/librishka_sys.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/librishka/sys.h b/sdk/librishka/sys.h index 726f35b..c01525c 100644 --- a/sdk/librishka/sys.h +++ b/sdk/librishka/sys.h @@ -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. diff --git a/sdk/librishka_sys.cpp b/sdk/librishka_sys.cpp index 9336fe3..fbf6b3e 100644 --- a/sdk/librishka_sys.cpp +++ b/sdk/librishka_sys.cpp @@ -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) {