summaryrefslogtreecommitdiffhomepage
path: root/dev/launch/src/AppMain.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dev/launch/src/AppMain.cc')
-rw-r--r--dev/launch/src/AppMain.cc28
1 files changed, 0 insertions, 28 deletions
diff --git a/dev/launch/src/AppMain.cc b/dev/launch/src/AppMain.cc
deleted file mode 100644
index 10e9ff2b..00000000
--- a/dev/launch/src/AppMain.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-/* ========================================
-
- Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
-
- ======================================== */
-
-#include <LaunchKit/Foundation.h>
-#include <libSystem/SystemKit/Err.h>
-#include <libSystem/SystemKit/Syscall.h>
-
-/// @note This called by _NeMain from its own runtime.
-extern "C" SInt32 nelaunch_startup_fn(Void) {
- /// Start LaunchHelpers.fwrk services, and make the launcher manageable too (via mgmt.launch)
- UInt32* ret = (UInt32*) libsys_syscall_arg_1(libsys_hash_64("__launch_register_launch_service"));
-
- if (ret) {
- switch (*ret) {
- case kErrorSuccess: {
- libsys_syscall_arg_1(libsys_hash_64("__launch_listen_as_root"));
- return *ret;
- }
- default:
- break;
- }
- }
-
- return kErrorExecutable;
-}