mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 15:31:18 +12:00
More detailed error messages when encrypted titles fail to launch
This commit is contained in:
parent
5ad57bb0c9
commit
f6c3c96d94
5 changed files with 81 additions and 15 deletions
|
@ -20,11 +20,21 @@ private:
|
|||
class FSTVolume
|
||||
{
|
||||
public:
|
||||
enum class ErrorCode
|
||||
{
|
||||
OK = 0,
|
||||
UNKNOWN_ERROR = 1,
|
||||
DISC_KEY_MISSING = 2,
|
||||
TITLE_TIK_MISSING = 3,
|
||||
BAD_TITLE_TMD = 4,
|
||||
BAD_TITLE_TIK = 5,
|
||||
};
|
||||
|
||||
static bool FindDiscKey(const fs::path& path, NCrypto::AesKey& discTitleKey);
|
||||
|
||||
static FSTVolume* OpenFromDiscImage(const fs::path& path, NCrypto::AesKey& discTitleKey);
|
||||
static FSTVolume* OpenFromDiscImage(const fs::path& path, bool* keyFound = nullptr);
|
||||
static FSTVolume* OpenFromContentFolder(fs::path folderPath);
|
||||
static FSTVolume* OpenFromDiscImage(const fs::path& path, NCrypto::AesKey& discTitleKey, ErrorCode* errorCodeOut = nullptr);
|
||||
static FSTVolume* OpenFromDiscImage(const fs::path& path, ErrorCode* errorCodeOut = nullptr);
|
||||
static FSTVolume* OpenFromContentFolder(fs::path folderPath, ErrorCode* errorCodeOut = nullptr);
|
||||
|
||||
~FSTVolume();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue