mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Upgrade codebase to C++ 20 + fix warnings + update submodules (#6115)
This commit is contained in:
		
							parent
							
								
									90b418fd1a
								
							
						
					
					
						commit
						cbd5d1c15c
					
				
					 67 changed files with 6837 additions and 7475 deletions
				
			
		|  | @ -66,12 +66,13 @@ void EmuThread::run() { | |||
|     // so that the DebugModeLeft signal can be emitted before the
 | ||||
|     // next execution step.
 | ||||
|     bool was_active = false; | ||||
|     Core::System& system = Core::System::GetInstance(); | ||||
|     while (!stop_run) { | ||||
|         if (running) { | ||||
|             if (!was_active) | ||||
|                 emit DebugModeLeft(); | ||||
| 
 | ||||
|             Core::System::ResultStatus result = Core::System::GetInstance().RunLoop(); | ||||
|             const Core::System::ResultStatus result = system.RunLoop(); | ||||
|             if (result == Core::System::ResultStatus::ShutdownRequested) { | ||||
|                 // Notify frontend we shutdown
 | ||||
|                 emit ErrorThrown(result, ""); | ||||
|  | @ -91,7 +92,7 @@ void EmuThread::run() { | |||
|                 emit DebugModeLeft(); | ||||
| 
 | ||||
|             exec_step = false; | ||||
|             Core::System::GetInstance().SingleStep(); | ||||
|             [[maybe_unused]] const Core::System::ResultStatus result = system.SingleStep(); | ||||
|             emit DebugModeEntered(); | ||||
|             yieldCurrentThread(); | ||||
| 
 | ||||
|  | @ -103,7 +104,7 @@ void EmuThread::run() { | |||
|     } | ||||
| 
 | ||||
|     // Shutdown the core emulation
 | ||||
|     Core::System::GetInstance().Shutdown(); | ||||
|     system.Shutdown(); | ||||
| 
 | ||||
| #if MICROPROFILE_ENABLED | ||||
|     MicroProfileOnThreadExit(); | ||||
|  |  | |||
|  | @ -574,8 +574,8 @@ void GameList::AddCustomDirPopup(QMenu& context_menu, QModelIndex selected) { | |||
| void GameList::AddPermDirPopup(QMenu& context_menu, QModelIndex selected) { | ||||
|     const int game_dir_index = selected.data(GameListDir::GameDirRole).toInt(); | ||||
| 
 | ||||
|     QAction* move_up = context_menu.addAction(tr(u8"\U000025b2 Move Up")); | ||||
|     QAction* move_down = context_menu.addAction(tr(u8"\U000025bc Move Down ")); | ||||
|     QAction* move_up = context_menu.addAction(tr("\u25b2 Move Up")); | ||||
|     QAction* move_down = context_menu.addAction(tr("\u25bc Move Down ")); | ||||
|     QAction* open_directory_location = context_menu.addAction(tr("Open Directory Location")); | ||||
| 
 | ||||
|     const int row = selected.row(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue