// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #pragma once #include "core/hle/service/service.h" namespace Service::AM { class LibraryAppletStorage; class IStorage final : public ServiceFramework { public: explicit IStorage(Core::System& system_, std::shared_ptr impl_); explicit IStorage(Core::System& system_, std::vector&& buffer); ~IStorage() override; std::shared_ptr GetImpl() const { return impl; } std::vector GetData() const; private: void Open(HLERequestContext& ctx); void OpenTransferStorage(HLERequestContext& ctx); const std::shared_ptr impl; }; } // namespace Service::AM