summaryrefslogtreecommitdiffstats
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 23:58:44 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2024-02-10 07:23:22 +0100
commit7c2e9a6596c8b6c5d366c3eaaf926ad7db406486 (patch)
tree77657cc9413e380eb49e758647536a9dff4f7082 /src/core/hle/service/bcat/bcat_result.h
parentMerge pull request #12951 from liamwhite/more-ipc (diff)
downloadyuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.tar
yuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.tar.gz
yuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.tar.bz2
yuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.tar.lz
yuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.tar.xz
yuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.tar.zst
yuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.zip
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