Fix auto updating ncch files
This commit is contained in:
		@@ -324,6 +324,7 @@ System::ResultStatus System::Load(Frontend::EmuWindow& emu_window, const std::st
 | 
			
		||||
    status = ResultStatus::Success;
 | 
			
		||||
    m_emu_window = &emu_window;
 | 
			
		||||
    m_filepath = filepath;
 | 
			
		||||
    self_delete_pending = false;
 | 
			
		||||
 | 
			
		||||
    // Reset counters and set time origin to current frame
 | 
			
		||||
    [[maybe_unused]] const PerfStats::Results result = GetAndResetPerfStats();
 | 
			
		||||
@@ -556,6 +557,10 @@ void System::Shutdown(bool is_deserializing) {
 | 
			
		||||
 | 
			
		||||
    memory.reset();
 | 
			
		||||
 | 
			
		||||
    if (self_delete_pending)
 | 
			
		||||
        FileUtil::Delete(m_filepath);
 | 
			
		||||
    self_delete_pending = false;
 | 
			
		||||
 | 
			
		||||
    LOG_DEBUG(Core, "Shutdown OK");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user