chore: make yuzu REUSE compliant
[REUSE] is a specification that aims at making file copyright
information consistent, so that it can be both human and machine
readable. It basically requires that all files have a header containing
copyright and licensing information. When this isn't possible, like
when dealing with binary assets, generated files or embedded third-party
dependencies, it is permitted to insert copyright information in the
`.reuse/dep5` file.
Oh, and it also requires that all the licenses used in the project are
present in the `LICENSES` folder, that's why the diff is so huge.
This can be done automatically with `reuse download --all`.
The `reuse` tool also contains a handy subcommand that analyzes the
project and tells whether or not the project is (still) compliant,
`reuse lint`.
Following REUSE has a few advantages over the current approach:
- Copyright information is easy to access for users / downstream
- Files like `dist/license.md` do not need to exist anymore, as
`.reuse/dep5` is used instead
- `reuse lint` makes it easy to ensure that copyright information of
files like binary assets / images is always accurate and up to date
To add copyright information of files that didn't have it I looked up
who committed what and when, for each file. As yuzu contributors do not
have to sign a CLA or similar I couldn't assume that copyright ownership
was of the "yuzu Emulator Project", so I used the name and/or email of
the commit author instead.
[REUSE]: https://reuse.software
Follow-up to 01cf05bc75b1e47beb08937439f3ed9339e7b254
2022-05-15 02:06:02 +02:00
|
|
|
// SPDX-FileCopyrightText: 2016 Citra Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2016-10-17 08:54:48 +02:00
|
|
|
|
2017-05-21 06:41:11 +02:00
|
|
|
#pragma once
|
|
|
|
|
2016-10-17 08:54:48 +02:00
|
|
|
#include "core/hle/result.h"
|
|
|
|
|
|
|
|
namespace FileSys {
|
|
|
|
|
2024-01-18 21:55:15 +01:00
|
|
|
constexpr Result ResultPathNotFound{ErrorModule::FS, 1};
|
|
|
|
constexpr Result ResultPathAlreadyExists{ErrorModule::FS, 2};
|
2023-08-11 03:34:43 +02:00
|
|
|
constexpr Result ResultUnsupportedSdkVersion{ErrorModule::FS, 50};
|
|
|
|
constexpr Result ResultPartitionNotFound{ErrorModule::FS, 1001};
|
2024-01-18 21:55:15 +01:00
|
|
|
constexpr Result ResultTargetNotFound{ErrorModule::FS, 1002};
|
|
|
|
constexpr Result ResultPortSdCardNoDevice{ErrorModule::FS, 2001};
|
|
|
|
constexpr Result ResultNotImplemented{ErrorModule::FS, 3001};
|
2023-08-11 03:34:43 +02:00
|
|
|
constexpr Result ResultUnsupportedVersion{ErrorModule::FS, 3002};
|
|
|
|
constexpr Result ResultOutOfRange{ErrorModule::FS, 3005};
|
|
|
|
constexpr Result ResultAllocationMemoryFailedInFileSystemBuddyHeapA{ErrorModule::FS, 3294};
|
|
|
|
constexpr Result ResultAllocationMemoryFailedInNcaFileSystemDriverI{ErrorModule::FS, 3341};
|
|
|
|
constexpr Result ResultAllocationMemoryFailedInNcaReaderA{ErrorModule::FS, 3363};
|
|
|
|
constexpr Result ResultAllocationMemoryFailedInAesCtrCounterExtendedStorageA{ErrorModule::FS, 3399};
|
|
|
|
constexpr Result ResultAllocationMemoryFailedInIntegrityRomFsStorageA{ErrorModule::FS, 3412};
|
|
|
|
constexpr Result ResultAllocationMemoryFailedMakeUnique{ErrorModule::FS, 3422};
|
|
|
|
constexpr Result ResultAllocationMemoryFailedAllocateShared{ErrorModule::FS, 3423};
|
|
|
|
constexpr Result ResultInvalidAesCtrCounterExtendedEntryOffset{ErrorModule::FS, 4012};
|
|
|
|
constexpr Result ResultIndirectStorageCorrupted{ErrorModule::FS, 4021};
|
|
|
|
constexpr Result ResultInvalidIndirectEntryOffset{ErrorModule::FS, 4022};
|
|
|
|
constexpr Result ResultInvalidIndirectEntryStorageIndex{ErrorModule::FS, 4023};
|
|
|
|
constexpr Result ResultInvalidIndirectStorageSize{ErrorModule::FS, 4024};
|
|
|
|
constexpr Result ResultInvalidBucketTreeSignature{ErrorModule::FS, 4032};
|
|
|
|
constexpr Result ResultInvalidBucketTreeEntryCount{ErrorModule::FS, 4033};
|
|
|
|
constexpr Result ResultInvalidBucketTreeNodeEntryCount{ErrorModule::FS, 4034};
|
|
|
|
constexpr Result ResultInvalidBucketTreeNodeOffset{ErrorModule::FS, 4035};
|
|
|
|
constexpr Result ResultInvalidBucketTreeEntryOffset{ErrorModule::FS, 4036};
|
|
|
|
constexpr Result ResultInvalidBucketTreeEntrySetOffset{ErrorModule::FS, 4037};
|
|
|
|
constexpr Result ResultInvalidBucketTreeNodeIndex{ErrorModule::FS, 4038};
|
|
|
|
constexpr Result ResultInvalidBucketTreeVirtualOffset{ErrorModule::FS, 4039};
|
|
|
|
constexpr Result ResultRomNcaInvalidPatchMetaDataHashType{ErrorModule::FS, 4084};
|
|
|
|
constexpr Result ResultRomNcaInvalidIntegrityLayerInfoOffset{ErrorModule::FS, 4085};
|
|
|
|
constexpr Result ResultRomNcaInvalidPatchMetaDataHashDataSize{ErrorModule::FS, 4086};
|
|
|
|
constexpr Result ResultRomNcaInvalidPatchMetaDataHashDataOffset{ErrorModule::FS, 4087};
|
|
|
|
constexpr Result ResultRomNcaInvalidPatchMetaDataHashDataHash{ErrorModule::FS, 4088};
|
|
|
|
constexpr Result ResultRomNcaInvalidSparseMetaDataHashType{ErrorModule::FS, 4089};
|
|
|
|
constexpr Result ResultRomNcaInvalidSparseMetaDataHashDataSize{ErrorModule::FS, 4090};
|
|
|
|
constexpr Result ResultRomNcaInvalidSparseMetaDataHashDataOffset{ErrorModule::FS, 4091};
|
|
|
|
constexpr Result ResultRomNcaInvalidSparseMetaDataHashDataHash{ErrorModule::FS, 4091};
|
|
|
|
constexpr Result ResultNcaBaseStorageOutOfRangeB{ErrorModule::FS, 4509};
|
|
|
|
constexpr Result ResultNcaBaseStorageOutOfRangeC{ErrorModule::FS, 4510};
|
|
|
|
constexpr Result ResultNcaBaseStorageOutOfRangeD{ErrorModule::FS, 4511};
|
|
|
|
constexpr Result ResultInvalidNcaSignature{ErrorModule::FS, 4517};
|
|
|
|
constexpr Result ResultNcaFsHeaderHashVerificationFailed{ErrorModule::FS, 4520};
|
|
|
|
constexpr Result ResultInvalidNcaKeyIndex{ErrorModule::FS, 4521};
|
|
|
|
constexpr Result ResultInvalidNcaFsHeaderHashType{ErrorModule::FS, 4522};
|
|
|
|
constexpr Result ResultInvalidNcaFsHeaderEncryptionType{ErrorModule::FS, 4523};
|
|
|
|
constexpr Result ResultInvalidNcaPatchInfoIndirectSize{ErrorModule::FS, 4524};
|
|
|
|
constexpr Result ResultInvalidNcaPatchInfoAesCtrExSize{ErrorModule::FS, 4525};
|
|
|
|
constexpr Result ResultInvalidNcaPatchInfoAesCtrExOffset{ErrorModule::FS, 4526};
|
|
|
|
constexpr Result ResultInvalidNcaHeader{ErrorModule::FS, 4528};
|
|
|
|
constexpr Result ResultInvalidNcaFsHeader{ErrorModule::FS, 4529};
|
|
|
|
constexpr Result ResultNcaBaseStorageOutOfRangeE{ErrorModule::FS, 4530};
|
|
|
|
constexpr Result ResultInvalidHierarchicalSha256BlockSize{ErrorModule::FS, 4532};
|
|
|
|
constexpr Result ResultInvalidHierarchicalSha256LayerCount{ErrorModule::FS, 4533};
|
|
|
|
constexpr Result ResultHierarchicalSha256BaseStorageTooLarge{ErrorModule::FS, 4534};
|
|
|
|
constexpr Result ResultHierarchicalSha256HashVerificationFailed{ErrorModule::FS, 4535};
|
|
|
|
constexpr Result ResultInvalidNcaHierarchicalIntegrityVerificationLayerCount{ErrorModule::FS, 4541};
|
|
|
|
constexpr Result ResultInvalidNcaIndirectStorageOutOfRange{ErrorModule::FS, 4542};
|
|
|
|
constexpr Result ResultInvalidNcaHeader1SignatureKeyGeneration{ErrorModule::FS, 4543};
|
|
|
|
constexpr Result ResultInvalidCompressedStorageSize{ErrorModule::FS, 4547};
|
|
|
|
constexpr Result ResultInvalidNcaMetaDataHashDataSize{ErrorModule::FS, 4548};
|
|
|
|
constexpr Result ResultInvalidNcaMetaDataHashDataHash{ErrorModule::FS, 4549};
|
|
|
|
constexpr Result ResultUnexpectedInCompressedStorageA{ErrorModule::FS, 5324};
|
|
|
|
constexpr Result ResultUnexpectedInCompressedStorageB{ErrorModule::FS, 5325};
|
|
|
|
constexpr Result ResultUnexpectedInCompressedStorageC{ErrorModule::FS, 5326};
|
|
|
|
constexpr Result ResultUnexpectedInCompressedStorageD{ErrorModule::FS, 5327};
|
2024-01-18 23:08:37 +01:00
|
|
|
constexpr Result ResultUnexpectedInPathA{ErrorModule::FS, 5328};
|
2023-08-11 03:34:43 +02:00
|
|
|
constexpr Result ResultInvalidArgument{ErrorModule::FS, 6001};
|
2024-01-18 23:08:37 +01:00
|
|
|
constexpr Result ResultInvalidPath{ErrorModule::FS, 6002};
|
|
|
|
constexpr Result ResultTooLongPath{ErrorModule::FS, 6003};
|
|
|
|
constexpr Result ResultInvalidCharacter{ErrorModule::FS, 6004};
|
|
|
|
constexpr Result ResultInvalidPathFormat{ErrorModule::FS, 6005};
|
|
|
|
constexpr Result ResultDirectoryUnobtainable{ErrorModule::FS, 6006};
|
|
|
|
constexpr Result ResultNotNormalized{ErrorModule::FS, 6007};
|
2023-08-11 03:34:43 +02:00
|
|
|
constexpr Result ResultInvalidOffset{ErrorModule::FS, 6061};
|
|
|
|
constexpr Result ResultInvalidSize{ErrorModule::FS, 6062};
|
|
|
|
constexpr Result ResultNullptrArgument{ErrorModule::FS, 6063};
|
2024-01-18 23:08:37 +01:00
|
|
|
constexpr Result ResultInvalidOpenMode{ErrorModule::FS, 6072};
|
|
|
|
constexpr Result ResultFileExtensionWithoutOpenModeAllowAppend{ErrorModule::FS, 6201};
|
|
|
|
constexpr Result ResultReadNotPermitted{ErrorModule::FS, 6202};
|
|
|
|
constexpr Result ResultWriteNotPermitted{ErrorModule::FS, 6203};
|
2023-08-11 03:34:43 +02:00
|
|
|
constexpr Result ResultUnsupportedSetSizeForIndirectStorage{ErrorModule::FS, 6325};
|
|
|
|
constexpr Result ResultUnsupportedWriteForCompressedStorage{ErrorModule::FS, 6387};
|
|
|
|
constexpr Result ResultUnsupportedOperateRangeForCompressedStorage{ErrorModule::FS, 6388};
|
|
|
|
constexpr Result ResultBufferAllocationFailed{ErrorModule::FS, 6705};
|
|
|
|
|
2016-10-17 08:54:48 +02:00
|
|
|
} // namespace FileSys
|