mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	Fix auto updating ncch files
This commit is contained in:
		
							parent
							
								
									67c4b87184
								
							
						
					
					
						commit
						c49379442d
					
				
					 5 changed files with 24 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -318,7 +318,12 @@ bool CIAFile::Close() const {
 | 
			
		|||
            if (abort)
 | 
			
		||||
                break;
 | 
			
		||||
 | 
			
		||||
            FileUtil::Delete(GetTitleContentPath(media_type, old_tmd.GetTitleID(), old_index));
 | 
			
		||||
            // Try deleting the file, if it fails it's because it's the currently running file
 | 
			
		||||
            // and we are on windows. In that case, let system know to delete the currently
 | 
			
		||||
            // running file once it shuts down.
 | 
			
		||||
            std::string toDelete = GetTitleContentPath(media_type, old_tmd.GetTitleID(), old_index);
 | 
			
		||||
            if (!FileUtil::Delete(toDelete) && FileUtil::GetCurrentRomPath() == toDelete)
 | 
			
		||||
                Core::System::GetInstance().SetSelfDelete(toDelete);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        FileUtil::Delete(old_tmd_path);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue