mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-07 03:21:38 +12:00
hle: Add proper type for result code
This should clean up all HLE errorcode in the codebase. I didn't removed Rust::Result as this should be a cleanup for another iteration.
This commit is contained in:
parent
c6f5d19983
commit
122b1b2727
73 changed files with 540 additions and 419 deletions
18
include/result/result_fs.hpp
Normal file
18
include/result/result_fs.hpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
#include "result_common.hpp"
|
||||
|
||||
DEFINE_HORIZON_RESULT_MODULE(Result::FS, FS);
|
||||
|
||||
namespace Result::FS {
|
||||
// TODO: Verify this
|
||||
DEFINE_HORIZON_RESULT(FileNotFound, 100, NotFound, Status);
|
||||
// TODO: Verify this
|
||||
DEFINE_HORIZON_RESULT(FileNotFoundAlt, 112, NotFound, Status);
|
||||
// Also a not found error code used here and there in the FS module.
|
||||
DEFINE_HORIZON_RESULT(NotFoundInvalid, 120, InvalidState, Status);
|
||||
DEFINE_HORIZON_RESULT(AlreadyExists, 190, NothingHappened, Info);
|
||||
DEFINE_HORIZON_RESULT(FileTooLarge, 210, OutOfResource, Info);
|
||||
// Trying to access an archive that needs formatting and has not been formatted
|
||||
DEFINE_HORIZON_RESULT(NotFormatted, 340, InvalidState, Status);
|
||||
DEFINE_HORIZON_RESULT(UnexpectedFileOrDir, 770, NotSupported, Usage);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue