diff options
author | Liam <byteslice@airmail.cc> | 2024-02-17 19:46:18 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-18 16:32:21 +0100 |
commit | 2eded86b4b525fad4221115b716700d63ad8438f (patch) | |
tree | 284865b9809b7787a4aeb0f0ad774419ddca79f0 /src/core/hle/service/ns/read_only_application_control_data_interface.h | |
parent | ns: rewrite IReadOnlyApplicationRecordInterface (diff) | |
download | yuzu-2eded86b4b525fad4221115b716700d63ad8438f.tar yuzu-2eded86b4b525fad4221115b716700d63ad8438f.tar.gz yuzu-2eded86b4b525fad4221115b716700d63ad8438f.tar.bz2 yuzu-2eded86b4b525fad4221115b716700d63ad8438f.tar.lz yuzu-2eded86b4b525fad4221115b716700d63ad8438f.tar.xz yuzu-2eded86b4b525fad4221115b716700d63ad8438f.tar.zst yuzu-2eded86b4b525fad4221115b716700d63ad8438f.zip |
Diffstat (limited to 'src/core/hle/service/ns/read_only_application_control_data_interface.h')
-rw-r--r-- | src/core/hle/service/ns/read_only_application_control_data_interface.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/core/hle/service/ns/read_only_application_control_data_interface.h b/src/core/hle/service/ns/read_only_application_control_data_interface.h new file mode 100644 index 000000000..7d470c432 --- /dev/null +++ b/src/core/hle/service/ns/read_only_application_control_data_interface.h @@ -0,0 +1,29 @@ +// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "core/hle/service/cmif_types.h" +#include "core/hle/service/ns/language.h" +#include "core/hle/service/ns/ns_types.h" +#include "core/hle/service/service.h" + +namespace Service::NS { + +class IReadOnlyApplicationControlDataInterface final + : public ServiceFramework<IReadOnlyApplicationControlDataInterface> { +public: + explicit IReadOnlyApplicationControlDataInterface(Core::System& system_); + ~IReadOnlyApplicationControlDataInterface() override; + +private: + Result GetApplicationControlData(OutBuffer<BufferAttr_HipcMapAlias> out_buffer, + Out<u32> out_actual_size, + ApplicationControlSource application_control_source, + u64 application_id); + Result GetApplicationDesiredLanguage(Out<u8> out_desired_language, u32 supported_languages); + Result ConvertApplicationLanguageToLanguageCode(Out<u64> out_language_code, + ApplicationLanguage application_language); +}; + +} // namespace Service::NS |