0
0
Fork 0

Add two error codes to Mii (#1224)

* Add two error codes to Mii

The two errors added are InvalidDatabaseSignatureValue and InvalidDatabaseEntryCount, which were taken from Switchbrew (https://switchbrew.org/wiki/Error_codes)

* Fix typo

* Remove unnecessary empty line
This commit is contained in:
VolcaEM 2020-05-08 16:23:26 +02:00 committed by GitHub
parent fe72bc9274
commit 8b81819716
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,23 +7,24 @@
Success = 0, Success = 0,
InvalidArgument = (1 << ErrorCodeShift) | ModuleId, InvalidArgument = (1 << ErrorCodeShift) | ModuleId,
BufferTooSmall = (2 << ErrorCodeShift) | ModuleId, BufferTooSmall = (2 << ErrorCodeShift) | ModuleId,
NotUpdated = (3 << ErrorCodeShift) | ModuleId, NotUpdated = (3 << ErrorCodeShift) | ModuleId,
NotFound = (4 << ErrorCodeShift) | ModuleId, NotFound = (4 << ErrorCodeShift) | ModuleId,
DatabaseFull = (5 << ErrorCodeShift) | ModuleId, DatabaseFull = (5 << ErrorCodeShift) | ModuleId,
InvalidCharInfo = (100 << ErrorCodeShift) | ModuleId, InvalidDatabaseSignatureValue = (67 << ErrorCodeShift) | ModuleId,
InvalidCrc = (101 << ErrorCodeShift) | ModuleId, InvalidDatabaseEntryCount = (69 << ErrorCodeShift) | ModuleId,
InvalidDeviceCrc = (102 << ErrorCodeShift) | ModuleId, InvalidCharInfo = (100 << ErrorCodeShift) | ModuleId,
InvalidDatabaseMagic = (103 << ErrorCodeShift) | ModuleId, InvalidCrc = (101 << ErrorCodeShift) | ModuleId,
InvalidDatabaseVersion = (104 << ErrorCodeShift) | ModuleId, InvalidDeviceCrc = (102 << ErrorCodeShift) | ModuleId,
InvalidDatabaseSize = (105 << ErrorCodeShift) | ModuleId, InvalidDatabaseMagic = (103 << ErrorCodeShift) | ModuleId,
InvalidCreateId = (106 << ErrorCodeShift) | ModuleId, InvalidDatabaseVersion = (104 << ErrorCodeShift) | ModuleId,
InvalidCoreData = (108 << ErrorCodeShift) | ModuleId, InvalidDatabaseSize = (105 << ErrorCodeShift) | ModuleId,
InvalidStoreData = (109 << ErrorCodeShift) | ModuleId, InvalidCreateId = (106 << ErrorCodeShift) | ModuleId,
InvalidCoreData = (108 << ErrorCodeShift) | ModuleId,
InvalidOperationOnSpecialMii = (202 << ErrorCodeShift) | ModuleId, InvalidStoreData = (109 << ErrorCodeShift) | ModuleId,
PermissionDenied = (203 << ErrorCodeShift) | ModuleId, InvalidOperationOnSpecialMii = (202 << ErrorCodeShift) | ModuleId,
TestModeNotEnabled = (204 << ErrorCodeShift) | ModuleId, PermissionDenied = (203 << ErrorCodeShift) | ModuleId,
TestModeNotEnabled = (204 << ErrorCodeShift) | ModuleId
} }
} }