mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Merge pull request #2639 from wwylele/fix-ptm-fs
ptm: create SharedExtSave file before openning it
This commit is contained in:
		
						commit
						eb8a7a92c1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -134,9 +134,9 @@ void Init() { | ||||||
|         ASSERT_MSG(archive_result.Succeeded(), "Could not open the PTM SharedExtSaveData archive!"); |         ASSERT_MSG(archive_result.Succeeded(), "Could not open the PTM SharedExtSaveData archive!"); | ||||||
| 
 | 
 | ||||||
|         FileSys::Path gamecoin_path("/gamecoin.dat"); |         FileSys::Path gamecoin_path("/gamecoin.dat"); | ||||||
|  |         Service::FS::CreateFileInArchive(*archive_result, gamecoin_path, sizeof(GameCoin)); | ||||||
|         FileSys::Mode open_mode = {}; |         FileSys::Mode open_mode = {}; | ||||||
|         open_mode.write_flag.Assign(1); |         open_mode.write_flag.Assign(1); | ||||||
|         open_mode.create_flag.Assign(1); |  | ||||||
|         // Open the file and write the default gamecoin information
 |         // Open the file and write the default gamecoin information
 | ||||||
|         auto gamecoin_result = |         auto gamecoin_result = | ||||||
|             Service::FS::OpenFileFromArchive(*archive_result, gamecoin_path, open_mode); |             Service::FS::OpenFileFromArchive(*archive_result, gamecoin_path, open_mode); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue