diff options
author | Sebastian Valle <subv2112@gmail.com> | 2016-11-28 00:56:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-28 00:56:56 +0100 |
commit | 4ba5acdaff19f5334b86e86c324763d4e9b969b0 (patch) | |
tree | 408343a46858bcde292744d89fc6b3dadd9a54b0 /src/core/hle/service/cfg/cfg.cpp | |
parent | Merge pull request #2218 from Subv/stencil_lines (diff) | |
parent | tests: add a work-around for macOS linking error (diff) | |
download | yuzu-4ba5acdaff19f5334b86e86c324763d4e9b969b0.tar yuzu-4ba5acdaff19f5334b86e86c324763d4e9b969b0.tar.gz yuzu-4ba5acdaff19f5334b86e86c324763d4e9b969b0.tar.bz2 yuzu-4ba5acdaff19f5334b86e86c324763d4e9b969b0.tar.lz yuzu-4ba5acdaff19f5334b86e86c324763d4e9b969b0.tar.xz yuzu-4ba5acdaff19f5334b86e86c324763d4e9b969b0.tar.zst yuzu-4ba5acdaff19f5334b86e86c324763d4e9b969b0.zip |
Diffstat (limited to 'src/core/hle/service/cfg/cfg.cpp')
-rw-r--r-- | src/core/hle/service/cfg/cfg.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cpp index d3d0f3b55..d554c3f54 100644 --- a/src/core/hle/service/cfg/cfg.cpp +++ b/src/core/hle/service/cfg/cfg.cpp @@ -360,7 +360,7 @@ ResultCode CreateConfigInfoBlk(u32 block_id, u16 size, u16 flags, const void* da } ResultCode DeleteConfigNANDSaveFile() { - FileSys::Path path("config"); + FileSys::Path path("/config"); return Service::FS::DeleteFileFromArchive(cfg_system_save_data_archive, path); } @@ -369,7 +369,7 @@ ResultCode UpdateConfigNANDSavegame() { mode.write_flag.Assign(1); mode.create_flag.Assign(1); - FileSys::Path path("config"); + FileSys::Path path("/config"); auto config_result = Service::FS::OpenFileFromArchive(cfg_system_save_data_archive, path, mode); ASSERT_MSG(config_result.Succeeded(), "could not open file"); @@ -383,8 +383,9 @@ ResultCode UpdateConfigNANDSavegame() { ResultCode FormatConfig() { ResultCode res = DeleteConfigNANDSaveFile(); // The delete command fails if the file doesn't exist, so we have to check that too - if (!res.IsSuccess() && res.description != ErrorDescription::FS_NotFound) + if (!res.IsSuccess() && res.description != ErrorDescription::FS_FileNotFound) { return res; + } // Delete the old data cfg_config_file_buffer.fill(0); // Create the header @@ -510,7 +511,7 @@ ResultCode LoadConfigNANDSaveFile() { cfg_system_save_data_archive = *archive_result; - FileSys::Path config_path("config"); + FileSys::Path config_path("/config"); FileSys::Mode open_mode = {}; open_mode.read_flag.Assign(1); |