diff options
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/cfg/cfg.cpp | 9 | ||||
| -rw-r--r-- | src/core/hle/service/ptm/ptm.cpp | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cpp index 24eee6903..849dab707 100644 --- a/src/core/hle/service/cfg/cfg.cpp +++ b/src/core/hle/service/cfg/cfg.cpp | |||
| @@ -359,7 +359,7 @@ ResultCode CreateConfigInfoBlk(u32 block_id, u16 size, u16 flags, const void* da | |||
| 359 | } | 359 | } |
| 360 | 360 | ||
| 361 | ResultCode DeleteConfigNANDSaveFile() { | 361 | ResultCode DeleteConfigNANDSaveFile() { |
| 362 | FileSys::Path path("config"); | 362 | FileSys::Path path("/config"); |
| 363 | return Service::FS::DeleteFileFromArchive(cfg_system_save_data_archive, path); | 363 | return Service::FS::DeleteFileFromArchive(cfg_system_save_data_archive, path); |
| 364 | } | 364 | } |
| 365 | 365 | ||
| @@ -368,7 +368,7 @@ ResultCode UpdateConfigNANDSavegame() { | |||
| 368 | mode.write_flag.Assign(1); | 368 | mode.write_flag.Assign(1); |
| 369 | mode.create_flag.Assign(1); | 369 | mode.create_flag.Assign(1); |
| 370 | 370 | ||
| 371 | FileSys::Path path("config"); | 371 | FileSys::Path path("/config"); |
| 372 | 372 | ||
| 373 | auto config_result = Service::FS::OpenFileFromArchive(cfg_system_save_data_archive, path, mode); | 373 | auto config_result = Service::FS::OpenFileFromArchive(cfg_system_save_data_archive, path, mode); |
| 374 | ASSERT_MSG(config_result.Succeeded(), "could not open file"); | 374 | ASSERT_MSG(config_result.Succeeded(), "could not open file"); |
| @@ -382,8 +382,9 @@ ResultCode UpdateConfigNANDSavegame() { | |||
| 382 | ResultCode FormatConfig() { | 382 | ResultCode FormatConfig() { |
| 383 | ResultCode res = DeleteConfigNANDSaveFile(); | 383 | ResultCode res = DeleteConfigNANDSaveFile(); |
| 384 | // The delete command fails if the file doesn't exist, so we have to check that too | 384 | // The delete command fails if the file doesn't exist, so we have to check that too |
| 385 | if (!res.IsSuccess() && res.description != ErrorDescription::FS_NotFound) | 385 | if (!res.IsSuccess() && res.description != ErrorDescription::FS_FileNotFound) { |
| 386 | return res; | 386 | return res; |
| 387 | } | ||
| 387 | // Delete the old data | 388 | // Delete the old data |
| 388 | cfg_config_file_buffer.fill(0); | 389 | cfg_config_file_buffer.fill(0); |
| 389 | // Create the header | 390 | // Create the header |
| @@ -504,7 +505,7 @@ ResultCode LoadConfigNANDSaveFile() { | |||
| 504 | 505 | ||
| 505 | cfg_system_save_data_archive = *archive_result; | 506 | cfg_system_save_data_archive = *archive_result; |
| 506 | 507 | ||
| 507 | FileSys::Path config_path("config"); | 508 | FileSys::Path config_path("/config"); |
| 508 | FileSys::Mode open_mode = {}; | 509 | FileSys::Mode open_mode = {}; |
| 509 | open_mode.read_flag.Assign(1); | 510 | open_mode.read_flag.Assign(1); |
| 510 | 511 | ||
diff --git a/src/core/hle/service/ptm/ptm.cpp b/src/core/hle/service/ptm/ptm.cpp index 6e6b63329..cc859c14c 100644 --- a/src/core/hle/service/ptm/ptm.cpp +++ b/src/core/hle/service/ptm/ptm.cpp | |||
| @@ -128,7 +128,7 @@ void Init() { | |||
| 128 | Service::FS::OpenArchive(Service::FS::ArchiveIdCode::SharedExtSaveData, archive_path); | 128 | Service::FS::OpenArchive(Service::FS::ArchiveIdCode::SharedExtSaveData, archive_path); |
| 129 | ASSERT_MSG(archive_result.Succeeded(), "Could not open the PTM SharedExtSaveData archive!"); | 129 | ASSERT_MSG(archive_result.Succeeded(), "Could not open the PTM SharedExtSaveData archive!"); |
| 130 | 130 | ||
| 131 | FileSys::Path gamecoin_path("gamecoin.dat"); | 131 | FileSys::Path gamecoin_path("/gamecoin.dat"); |
| 132 | FileSys::Mode open_mode = {}; | 132 | FileSys::Mode open_mode = {}; |
| 133 | open_mode.write_flag.Assign(1); | 133 | open_mode.write_flag.Assign(1); |
| 134 | open_mode.create_flag.Assign(1); | 134 | open_mode.create_flag.Assign(1); |