mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	FileSys: add SDMCWriteOnlyArchive
This commit is contained in:
		
							parent
							
								
									93aa14e345
								
							
						
					
					
						commit
						0987783699
					
				
					 6 changed files with 140 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -18,6 +18,7 @@
 | 
			
		|||
#include "core/file_sys/archive_savedata.h"
 | 
			
		||||
#include "core/file_sys/archive_savedatacheck.h"
 | 
			
		||||
#include "core/file_sys/archive_sdmc.h"
 | 
			
		||||
#include "core/file_sys/archive_sdmcwriteonly.h"
 | 
			
		||||
#include "core/file_sys/archive_systemsavedata.h"
 | 
			
		||||
#include "core/file_sys/directory_backend.h"
 | 
			
		||||
#include "core/file_sys/file_backend.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -526,6 +527,13 @@ void RegisterArchiveTypes() {
 | 
			
		|||
        LOG_ERROR(Service_FS, "Can't instantiate SDMC archive with path %s",
 | 
			
		||||
                  sdmc_directory.c_str());
 | 
			
		||||
 | 
			
		||||
    auto sdmcwo_factory = std::make_unique<FileSys::ArchiveFactory_SDMCWriteOnly>(sdmc_directory);
 | 
			
		||||
    if (sdmcwo_factory->Initialize())
 | 
			
		||||
        RegisterArchiveType(std::move(sdmcwo_factory), ArchiveIdCode::SDMCWriteOnly);
 | 
			
		||||
    else
 | 
			
		||||
        LOG_ERROR(Service_FS, "Can't instantiate SDMCWriteOnly archive with path %s",
 | 
			
		||||
                  sdmc_directory.c_str());
 | 
			
		||||
 | 
			
		||||
    // Create the SaveData archive
 | 
			
		||||
    auto savedata_factory = std::make_unique<FileSys::ArchiveFactory_SaveData>(sdmc_directory);
 | 
			
		||||
    RegisterArchiveType(std::move(savedata_factory), ArchiveIdCode::SaveData);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue