diff options
Diffstat (limited to 'public/tools/ld/src/CommandLine.cc')
| -rw-r--r-- | public/tools/ld/src/CommandLine.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/public/tools/ld/src/CommandLine.cc b/public/tools/ld/src/CommandLine.cc new file mode 100644 index 00000000..534fdb4e --- /dev/null +++ b/public/tools/ld/src/CommandLine.cc @@ -0,0 +1,17 @@ +/* + * Created on Thu Oct 17 08:00:42 CEST 2024 + * + * Copyright (c) 2024 Amlal EL Mahrouss + */ + +#include <LibSCI/SCI.h> + +/// @brief This program loads a program for NeOS. + +SInt32 main(SInt32 argc, Char* argv[]) +{ + UIntPtr exit_code = RtlSpawnProcess(argv[1], argc - 2, argv + 2, + nullptr, 0); + + return exit_code; +} |
