diff options
author | bunnei <bunneidev@gmail.com> | 2018-02-11 23:28:07 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-02-11 23:28:07 +0100 |
commit | 068744db1bfddea0d49fb3ae120383b151011ebf (patch) | |
tree | 897a76774c6b79c4c17ebc933b7a10d379ce94a6 | |
parent | Merge pull request #175 from bunnei/libnx-fixes-2 (diff) | |
download | yuzu-068744db1bfddea0d49fb3ae120383b151011ebf.tar yuzu-068744db1bfddea0d49fb3ae120383b151011ebf.tar.gz yuzu-068744db1bfddea0d49fb3ae120383b151011ebf.tar.bz2 yuzu-068744db1bfddea0d49fb3ae120383b151011ebf.tar.lz yuzu-068744db1bfddea0d49fb3ae120383b151011ebf.tar.xz yuzu-068744db1bfddea0d49fb3ae120383b151011ebf.tar.zst yuzu-068744db1bfddea0d49fb3ae120383b151011ebf.zip |
-rw-r--r-- | src/core/hle/service/vi/vi.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 69ac2fe07..0262e830b 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp @@ -101,8 +101,10 @@ public: SerializeData(); Header header{}; - header.data_offset = sizeof(Header); header.data_size = static_cast<u32_le>(write_index - sizeof(Header)); + header.data_offset = sizeof(Header); + header.objects_size = 4; + header.objects_offset = sizeof(Header) + header.data_size; std::memcpy(buffer.data(), &header, sizeof(Header)); return buffer; @@ -142,11 +144,11 @@ protected: private: struct Data { u32_le magic = 2; - u32_le process_id; + u32_le process_id = 1; u32_le id; - INSERT_PADDING_BYTES(0xC); + INSERT_PADDING_WORDS(3); std::array<u8, 8> dispdrv = {'d', 'i', 's', 'p', 'd', 'r', 'v', '\0'}; - INSERT_PADDING_BYTES(8); + INSERT_PADDING_WORDS(2); }; static_assert(sizeof(Data) == 0x28, "ParcelData has wrong size"); @@ -672,7 +674,7 @@ void IApplicationDisplayService::CloseDisplay(Kernel::HLERequestContext& ctx) { } void IApplicationDisplayService::OpenLayer(Kernel::HLERequestContext& ctx) { - LOG_WARNING(Service_VI, "(STUBBED) called"); + LOG_DEBUG(Service_VI, "called"); IPC::RequestParser rp{ctx}; auto name_buf = rp.PopRaw<std::array<u8, 0x40>>(); auto end = std::find(name_buf.begin(), name_buf.end(), '\0'); @@ -697,7 +699,7 @@ void IApplicationDisplayService::OpenLayer(Kernel::HLERequestContext& ctx) { } void IApplicationDisplayService::CreateStrayLayer(Kernel::HLERequestContext& ctx) { - LOG_WARNING(Service, "(STUBBED) called"); + LOG_DEBUG(Service_VI, "called"); IPC::RequestParser rp{ctx}; u32 flags = rp.Pop<u32>(); |