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