mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-27 07:12:40 +02:00
Stylefix
This commit is contained in:
parent
97141448e9
commit
d4db5b7647
@ -27,7 +27,7 @@ enum {
|
||||
|
||||
typedef void NORETURN (*LoaderReturnFn)(int result_code);
|
||||
|
||||
void envParse(void* ctx, Handle main_thread, LoaderReturnFn saved_lr);
|
||||
void envSetup(void* ctx, Handle main_thread, LoaderReturnFn saved_lr);
|
||||
|
||||
Handle envGetMainThreadHandle(void);
|
||||
bool envIsNso(void);
|
||||
|
@ -12,7 +12,7 @@ extern char* fake_heap_end;
|
||||
|
||||
extern u32 __argdata__;
|
||||
|
||||
void __system_initArgv(void)
|
||||
void argvSetup(void)
|
||||
{
|
||||
Result rc=0;
|
||||
MemoryInfo meminfo;
|
||||
|
@ -15,7 +15,7 @@ static char* g_nextLoadArgv = NULL;
|
||||
|
||||
extern __attribute__((weak)) u32 __nx_applet_type;
|
||||
|
||||
void envParse(void* ctx, Handle main_thread, LoaderReturnFn saved_lr)
|
||||
void envSetup(void* ctx, Handle main_thread, LoaderReturnFn saved_lr)
|
||||
{
|
||||
// If we're running under NSO, we should just call svcExitProcess.
|
||||
// Otherwise we should return to loader via LR.
|
||||
|
@ -4,8 +4,7 @@ void __nx_exit(int rc);
|
||||
|
||||
void virtmemSetup(void);
|
||||
void newlibSetup(void);
|
||||
|
||||
void __system_initArgv(void);
|
||||
void argvSetup(void);
|
||||
|
||||
extern u32 __nx_applet_type;
|
||||
|
||||
@ -102,13 +101,13 @@ void __attribute__((weak)) __libnx_init(void* ctx, Handle main_thread, void* sav
|
||||
// Called by crt0.
|
||||
|
||||
// Libnx initialization goes here.
|
||||
envParse(ctx, main_thread, saved_lr);
|
||||
envSetup(ctx, main_thread, saved_lr);
|
||||
newlibSetup();
|
||||
virtmemSetup();
|
||||
__libnx_initheap();
|
||||
|
||||
// Build argc/argv if present
|
||||
__system_initArgv();
|
||||
argvSetup();
|
||||
|
||||
// Initialize services.
|
||||
__appInit();
|
||||
|
Loading…
Reference in New Issue
Block a user