mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Added Signals; more runtime fixes
This commit is contained in:
		
							parent
							
								
									e4f05884c3
								
							
						
					
					
						commit
						8abc5525be
					
				
					 17 changed files with 118 additions and 56 deletions
				
			
		|  | @ -1504,19 +1504,12 @@ void GMainWindow::OnCheats() { | |||
| } | ||||
| 
 | ||||
| void GMainWindow::OnSave() { | ||||
|     Core::System& system{Core::System::GetInstance()}; | ||||
|     auto fs = std::ofstream("save0.citrasave"); | ||||
|     emu_thread->SetRunning(false); | ||||
|     Core::System::GetInstance().Save(fs); | ||||
|     emu_thread->SetRunning(true); | ||||
|     Core::System::GetInstance().SendSignal(Core::System::Signal::Save); | ||||
| } | ||||
| 
 | ||||
| void GMainWindow::OnLoad() { | ||||
|     if (QFileInfo("save0.citrasave").exists()) { | ||||
|         auto fs = std::ifstream("save0.citrasave"); | ||||
|         emu_thread->SetRunning(false); | ||||
|         Core::System::GetInstance().Load(fs); | ||||
|         emu_thread->SetRunning(true); | ||||
|         Core::System::GetInstance().SendSignal(Core::System::Signal::Load); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue