mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
Implement RenameFile for ExtSaveData
This commit is contained in:
parent
4199c3b25b
commit
2f47f15315
3 changed files with 44 additions and 0 deletions
|
@ -12,6 +12,7 @@ public:
|
|||
HorizonResult createDirectory(const FSPath& path) override;
|
||||
HorizonResult createFile(const FSPath& path, u64 size) override;
|
||||
HorizonResult deleteFile(const FSPath& path) override;
|
||||
HorizonResult renameFile(const FSPath& oldPath, const FSPath& newPath) override;
|
||||
|
||||
Rust::Result<ArchiveBase*, HorizonResult> openArchive(const FSPath& path) override;
|
||||
Rust::Result<DirectorySession, HorizonResult> openDirectory(const FSPath& path) override;
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue