diff options
author | Liam <byteslice@airmail.cc> | 2024-02-17 18:22:16 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-18 16:32:21 +0100 |
commit | 786fc512e244b47d37d71e940cb70a5f7e59cb20 (patch) | |
tree | 02a7d38d951bdf5b08b922f9cd7aed4934052156 /src/core/hle/service/ns/read_only_application_record_interface.cpp | |
parent | ns: add IDynamicRightsInterface (diff) | |
download | yuzu-786fc512e244b47d37d71e940cb70a5f7e59cb20.tar yuzu-786fc512e244b47d37d71e940cb70a5f7e59cb20.tar.gz yuzu-786fc512e244b47d37d71e940cb70a5f7e59cb20.tar.bz2 yuzu-786fc512e244b47d37d71e940cb70a5f7e59cb20.tar.lz yuzu-786fc512e244b47d37d71e940cb70a5f7e59cb20.tar.xz yuzu-786fc512e244b47d37d71e940cb70a5f7e59cb20.tar.zst yuzu-786fc512e244b47d37d71e940cb70a5f7e59cb20.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/ns/read_only_application_record_interface.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/core/hle/service/ns/read_only_application_record_interface.cpp b/src/core/hle/service/ns/read_only_application_record_interface.cpp new file mode 100644 index 000000000..816a1e1dc --- /dev/null +++ b/src/core/hle/service/ns/read_only_application_record_interface.cpp @@ -0,0 +1,38 @@ +// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "core/hle/service/cmif_serialization.h" +#include "core/hle/service/ns/read_only_application_record_interface.h" + +namespace Service::NS { + +IReadOnlyApplicationRecordInterface::IReadOnlyApplicationRecordInterface(Core::System& system_) + : ServiceFramework{system_, "IReadOnlyApplicationRecordInterface"} { + static const FunctionInfo functions[] = { + {0, D<&IReadOnlyApplicationRecordInterface::HasApplicationRecord>, "HasApplicationRecord"}, + {1, nullptr, "NotifyApplicationFailure"}, + {2, D<&IReadOnlyApplicationRecordInterface::IsDataCorruptedResult>, + "IsDataCorruptedResult"}, + }; + // clang-format on + + RegisterHandlers(functions); +} + +IReadOnlyApplicationRecordInterface::~IReadOnlyApplicationRecordInterface() = default; + +Result IReadOnlyApplicationRecordInterface::HasApplicationRecord( + Out<bool> out_has_application_record, u64 program_id) { + LOG_WARNING(Service_NS, "(STUBBED) called, program_id={:016X}", program_id); + *out_has_application_record = true; + R_SUCCEED(); +} + +Result IReadOnlyApplicationRecordInterface::IsDataCorruptedResult( + Out<bool> out_is_data_corrupted_result, Result result) { + LOG_WARNING(Service_NS, "(STUBBED) called, result={:#x}", result.GetInnerValue()); + *out_is_data_corrupted_result = false; + R_SUCCEED(); +} + +} // namespace Service::NS |