From 7c2e9a6596c8b6c5d366c3eaaf926ad7db406486 Mon Sep 17 00:00:00 2001 From: Narr the Reg Date: Thu, 8 Feb 2024 16:58:44 -0600 Subject: service: bcat: Migrate and refractor service to new IPC --- src/core/hle/service/bcat/bcat_result.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/core/hle/service/bcat/bcat_result.h (limited to 'src/core/hle/service/bcat/bcat_result.h') diff --git a/src/core/hle/service/bcat/bcat_result.h b/src/core/hle/service/bcat/bcat_result.h new file mode 100644 index 000000000..d711924b1 --- /dev/null +++ b/src/core/hle/service/bcat/bcat_result.h @@ -0,0 +1,20 @@ +// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include "core/hle/result.h" + +namespace Service::BCAT { + +constexpr Result ResultInvalidArgument{ErrorModule::BCAT, 1}; +constexpr Result ResultFailedOpenEntity{ErrorModule::BCAT, 2}; +constexpr Result ResultEntityAlreadyOpen{ErrorModule::BCAT, 6}; +constexpr Result ResultNoOpenEntry{ErrorModule::BCAT, 7}; + +// The command to clear the delivery cache just calls fs IFileSystem DeleteFile on all of the +// files and if any of them have a non-zero result it just forwards that result. This is the FS +// error code for permission denied, which is the closest approximation of this scenario. +constexpr Result ResultFailedClearCache{ErrorModule::FS, 6400}; + +} // namespace Service::BCAT -- cgit v1.2.3