mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	Kernel: pass ref to session pair
This commit is contained in:
		
							parent
							
								
									1213a298df
								
							
						
					
					
						commit
						13c26b4371
					
				
					 18 changed files with 71 additions and 48 deletions
				
			
		| 
						 | 
				
			
			@ -1026,8 +1026,8 @@ void Module::Interface::BeginImportProgram(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    // Create our CIAFile handle for the app to write to, and while the app writes
 | 
			
		||||
    // Citra will store contents out to sdmc/nand
 | 
			
		||||
    const FileSys::Path cia_path = {};
 | 
			
		||||
    auto file =
 | 
			
		||||
        std::make_shared<Service::FS::File>(std::make_unique<CIAFile>(media_type), cia_path);
 | 
			
		||||
    auto file = std::make_shared<Service::FS::File>(
 | 
			
		||||
        am->system, std::make_unique<CIAFile>(media_type), cia_path);
 | 
			
		||||
 | 
			
		||||
    am->cia_installing = true;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1053,8 +1053,8 @@ void Module::Interface::BeginImportProgramTemporarily(Kernel::HLERequestContext&
 | 
			
		|||
    // Create our CIAFile handle for the app to write to, and while the app writes Citra will store
 | 
			
		||||
    // contents out to sdmc/nand
 | 
			
		||||
    const FileSys::Path cia_path = {};
 | 
			
		||||
    auto file = std::make_shared<Service::FS::File>(std::make_unique<CIAFile>(FS::MediaType::NAND),
 | 
			
		||||
                                                    cia_path);
 | 
			
		||||
    auto file = std::make_shared<Service::FS::File>(
 | 
			
		||||
        am->system, std::make_unique<CIAFile>(FS::MediaType::NAND), cia_path);
 | 
			
		||||
 | 
			
		||||
    am->cia_installing = true;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1455,7 +1455,7 @@ void Module::Interface::GetMetaDataFromCia(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    rb.PushMappedBuffer(output_buffer);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Module::Module(Core::System& system) {
 | 
			
		||||
Module::Module(Core::System& system) : system(system) {
 | 
			
		||||
    ScanForAllTitles();
 | 
			
		||||
    system_updater_mutex = system.Kernel().CreateMutex(false, "AM::SystemUpdaterMutex");
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -573,6 +573,7 @@ private:
 | 
			
		|||
     */
 | 
			
		||||
    void ScanForAllTitles();
 | 
			
		||||
 | 
			
		||||
    Core::System& system;
 | 
			
		||||
    bool cia_installing = false;
 | 
			
		||||
    std::array<std::vector<u64_le>, 3> am_title_list;
 | 
			
		||||
    Kernel::SharedPtr<Kernel::Mutex> system_updater_mutex;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue