diff options
| author | 2017-03-25 14:22:07 +0300 | |
|---|---|---|
| committer | 2017-03-25 14:22:07 +0300 | |
| commit | a37c9fb9d3b7e52420efa8d4268f532665a7b0b3 (patch) | |
| tree | d87ab4911bf00598f78648f3b5c69d7c9525a001 | |
| parent | Merge pull request #2512 from SonofUgly/custom-layout (diff) | |
| download | yuzu-a37c9fb9d3b7e52420efa8d4268f532665a7b0b3.tar.gz yuzu-a37c9fb9d3b7e52420efa8d4268f532665a7b0b3.tar.xz yuzu-a37c9fb9d3b7e52420efa8d4268f532665a7b0b3.zip | |
ptm: create SharedExtSave file before openning it
| -rw-r--r-- | src/core/hle/service/ptm/ptm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/ptm/ptm.cpp b/src/core/hle/service/ptm/ptm.cpp index 8ff808fd9..2542f8303 100644 --- a/src/core/hle/service/ptm/ptm.cpp +++ b/src/core/hle/service/ptm/ptm.cpp | |||
| @@ -134,9 +134,9 @@ void Init() { | |||
| 134 | ASSERT_MSG(archive_result.Succeeded(), "Could not open the PTM SharedExtSaveData archive!"); | 134 | ASSERT_MSG(archive_result.Succeeded(), "Could not open the PTM SharedExtSaveData archive!"); |
| 135 | 135 | ||
| 136 | FileSys::Path gamecoin_path("/gamecoin.dat"); | 136 | FileSys::Path gamecoin_path("/gamecoin.dat"); |
| 137 | Service::FS::CreateFileInArchive(*archive_result, gamecoin_path, sizeof(GameCoin)); | ||
| 137 | FileSys::Mode open_mode = {}; | 138 | FileSys::Mode open_mode = {}; |
| 138 | open_mode.write_flag.Assign(1); | 139 | open_mode.write_flag.Assign(1); |
| 139 | open_mode.create_flag.Assign(1); | ||
| 140 | // Open the file and write the default gamecoin information | 140 | // Open the file and write the default gamecoin information |
| 141 | auto gamecoin_result = | 141 | auto gamecoin_result = |
| 142 | Service::FS::OpenFileFromArchive(*archive_result, gamecoin_path, open_mode); | 142 | Service::FS::OpenFileFromArchive(*archive_result, gamecoin_path, open_mode); |