diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-11-10 02:04:43 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-11-18 16:53:47 +0100 |
commit | 0682a908c0ab79a5137f408cafc3aff07c7c7be5 (patch) | |
tree | 05421c7a1ac7b9cebf4ea08c496510e8376e1d56 | |
parent | am: Move IStorageAccessor to header and update backing buffer (diff) | |
download | yuzu-0682a908c0ab79a5137f408cafc3aff07c7c7be5.tar yuzu-0682a908c0ab79a5137f408cafc3aff07c7c7be5.tar.gz yuzu-0682a908c0ab79a5137f408cafc3aff07c7c7be5.tar.bz2 yuzu-0682a908c0ab79a5137f408cafc3aff07c7c7be5.tar.lz yuzu-0682a908c0ab79a5137f408cafc3aff07c7c7be5.tar.xz yuzu-0682a908c0ab79a5137f408cafc3aff07c7c7be5.tar.zst yuzu-0682a908c0ab79a5137f408cafc3aff07c7c7be5.zip |
-rw-r--r-- | src/core/hle/service/am/am.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index c7344608c..35481b201 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -481,6 +481,22 @@ void ICommonStateGetter::GetDefaultDisplayResolution(Kernel::HLERequestContext& LOG_DEBUG(Service_AM, "called"); } +IStorage::IStorage(std::vector<u8> buffer) + : ServiceFramework("IStorage"), buffer(std::move(buffer)) { + // clang-format off + static const FunctionInfo functions[] = { + {0, &IStorage::Open, "Open"}, + {1, nullptr, "OpenTransferStorage"}, + }; + // clang-format on + + RegisterHandlers(functions); +} + +const std::vector<u8>& IStorage::GetData() const { + return buffer; +} + void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) { const bool use_docked_mode{Settings::values.use_docked_mode}; IPC::ResponseBuilder rb{ctx, 3}; |