summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-02-17 13:59:45 -0500
committerSubv <subv2112@gmail.com>2018-02-17 13:59:45 -0500
commit1b64160d835d23141cb150cb1ea9b2ab62b5c835 (patch)
treed83adfc30de6b164940e8d92807ead3785ad88de /src
parent7a1917e0fde95b6da6a4d95111bb0462c072cd5c (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/vi/vi.cpp3
1 files changed, 2 insertions, 1 deletions
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<u32_le>(0);
+ Write<u32_le>(1);
+ WriteObject(buffer);
Write<u32_le>(0);
}