From c5e67838704e8e29773b26eef2abd2cb48cc22c6 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Fri, 3 Nov 2017 13:30:35 -0400 Subject: [PATCH] Return _gfxInit() retval properly. _viOpenLayer and _viCreateStrayLayer are broken. --- nx/source/gfx/gfx.c | 2 +- nx/source/services/vi.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nx/source/gfx/gfx.c b/nx/source/gfx/gfx.c index 6d90b2da..115d8089 100644 --- a/nx/source/gfx/gfx.c +++ b/nx/source/gfx/gfx.c @@ -26,7 +26,7 @@ static Result _gfxInit(viServiceType servicetype, const char *DisplayName, u32 L if (R_SUCCEEDED(rc)) g_gfxInitialized = 1; - return 0; + return rc; } void gfxInitDefault(void) { diff --git a/nx/source/services/vi.c b/nx/source/services/vi.c index a897327b..8a9cc908 100644 --- a/nx/source/services/vi.c +++ b/nx/source/services/vi.c @@ -241,6 +241,7 @@ Result viCloseDisplay(viDisplay *display) { return rc; } +//TODO: BROKEN static Result _viOpenLayer(u8 NativeWindow[0x100], u64 *NativeWindow_Size, const viDisplay *display, u64 LayerId, u64 AppletResourceUserId) { IpcCommand c; ipcInitialize(&c); @@ -287,6 +288,7 @@ static Result _viOpenLayer(u8 NativeWindow[0x100], u64 *NativeWindow_Size, const return rc; } +//TODO: BROKEN static Result _viCreateStrayLayer(u8 NativeWindow[0x100], u64 *NativeWindow_Size, const viDisplay *display, u32 LayerFlags, u64 *LayerId) { IpcCommand c; ipcInitialize(&c);