default_window: fix missing weak declarations

This commit is contained in:
Liam 2023-04-06 23:05:26 -04:00
parent dca4fb772a
commit 8b2de63bab

View File

@ -17,7 +17,7 @@ NWindow* nwindowGetDefault(void)
return &g_defaultWin; return &g_defaultWin;
} }
void __nx_win_init(void) void __attribute__((weak)) __nx_win_init(void)
{ {
Result rc; Result rc;
rc = viInitialize(ViServiceType_Default); rc = viInitialize(ViServiceType_Default);
@ -45,7 +45,7 @@ void __nx_win_init(void)
diagAbortWithResult(MAKERESULT(Module_Libnx, LibnxError_BadGfxInit)); diagAbortWithResult(MAKERESULT(Module_Libnx, LibnxError_BadGfxInit));
} }
void __nx_win_exit(void) void __attribute__((weak)) __nx_win_exit(void)
{ {
nwindowClose(&g_defaultWin); nwindowClose(&g_defaultWin);
viCloseLayer(&g_viLayer); viCloseLayer(&g_viLayer);