summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-03-25 12:22:07 +0100
committerwwylele <wwylele@gmail.com>2017-03-25 12:22:07 +0100
commita37c9fb9d3b7e52420efa8d4268f532665a7b0b3 (patch)
treed87ab4911bf00598f78648f3b5c69d7c9525a001
parentMerge pull request #2512 from SonofUgly/custom-layout (diff)
downloadyuzu-a37c9fb9d3b7e52420efa8d4268f532665a7b0b3.tar
yuzu-a37c9fb9d3b7e52420efa8d4268f532665a7b0b3.tar.gz
yuzu-a37c9fb9d3b7e52420efa8d4268f532665a7b0b3.tar.bz2
yuzu-a37c9fb9d3b7e52420efa8d4268f532665a7b0b3.tar.lz
yuzu-a37c9fb9d3b7e52420efa8d4268f532665a7b0b3.tar.xz
yuzu-a37c9fb9d3b7e52420efa8d4268f532665a7b0b3.tar.zst
yuzu-a37c9fb9d3b7e52420efa8d4268f532665a7b0b3.zip
-rw-r--r--src/core/hle/service/ptm/ptm.cpp2
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);