diff options
author | bunnei <bunneidev@gmail.com> | 2017-03-25 17:05:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-25 17:05:50 +0100 |
commit | eb8a7a92c140f4e4fd981c21ea73a407360e36db (patch) | |
tree | d87ab4911bf00598f78648f3b5c69d7c9525a001 /src/core | |
parent | Merge pull request #2512 from SonofUgly/custom-layout (diff) | |
parent | ptm: create SharedExtSave file before openning it (diff) | |
download | yuzu-eb8a7a92c140f4e4fd981c21ea73a407360e36db.tar yuzu-eb8a7a92c140f4e4fd981c21ea73a407360e36db.tar.gz yuzu-eb8a7a92c140f4e4fd981c21ea73a407360e36db.tar.bz2 yuzu-eb8a7a92c140f4e4fd981c21ea73a407360e36db.tar.lz yuzu-eb8a7a92c140f4e4fd981c21ea73a407360e36db.tar.xz yuzu-eb8a7a92c140f4e4fd981c21ea73a407360e36db.tar.zst yuzu-eb8a7a92c140f4e4fd981c21ea73a407360e36db.zip |
Diffstat (limited to 'src/core')
-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() { ASSERT_MSG(archive_result.Succeeded(), "Could not open the PTM SharedExtSaveData archive!"); FileSys::Path gamecoin_path("/gamecoin.dat"); + Service::FS::CreateFileInArchive(*archive_result, gamecoin_path, sizeof(GameCoin)); FileSys::Mode open_mode = {}; open_mode.write_flag.Assign(1); - open_mode.create_flag.Assign(1); // Open the file and write the default gamecoin information auto gamecoin_result = Service::FS::OpenFileFromArchive(*archive_result, gamecoin_path, open_mode); |