Implement RenameFile for ExtSaveData

This commit is contained in:
wheremyfoodat 2023-09-27 14:16:27 +03:00
parent 4199c3b25b
commit 2f47f15315
3 changed files with 44 additions and 0 deletions

View file

@ -15,4 +15,10 @@ namespace Result::FS {
// 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);
// Trying to rename a file that doesn't exist or is a directory
DEFINE_HORIZON_RESULT(RenameNonexistentFileOrDir, 120, NotFound, Status);
// Trying to rename a file but the destination already exists
DEFINE_HORIZON_RESULT(RenameFileDestExists, 190, NothingHappened, Status);
};