aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/bcat/bcat_result.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-02-08 16:58:44 -0600
committerNarr the Reg <juangerman-13@hotmail.com>2024-02-10 00:23:22 -0600
commit7c2e9a6596c8b6c5d366c3eaaf926ad7db406486 (patch)
tree77657cc9413e380eb49e758647536a9dff4f7082 /src/core/hle/service/bcat/bcat_result.h
parent52c8adc7edd1b4a5ab58d3bf17f9b4acc29a833e (diff)
service: bcat: Migrate and refractor service to new IPC
Diffstat (limited to 'src/core/hle/service/bcat/bcat_result.h')
-rw-r--r--src/core/hle/service/bcat/bcat_result.h20
1 files changed, 20 insertions, 0 deletions
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