From 1b64160d835d23141cb150cb1ea9b2ab62b5c835 Mon Sep 17 00:00:00 2001 From: Subv Date: Sat, 17 Feb 2018 13:59:45 -0500 Subject: Vi: Always write the IGBPBuffer in the RequestBuffer response parcel. This may break libnx homebrew due to a bug in libnx but is required by official games since they always assume that the buffer will be there. --- src/core/hle/service/vi/vi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/hle/service/vi/vi.cpp') diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 048fe3a6f..e5f196158 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp @@ -325,7 +325,8 @@ protected: void SerializeData() override { // TODO(Subv): Figure out what this value means, writing non-zero here will make libnx try // to read an IGBPBuffer object from the parcel. - Write(0); + Write(1); + WriteObject(buffer); Write(0); } -- cgit v1.2.3