mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	core: De-globalize HLE lock (#7212)
This commit is contained in:
		
							parent
							
								
									83b329f6e1
								
							
						
					
					
						commit
						6ec079ede8
					
				
					 18 changed files with 66 additions and 92 deletions
				
			
		|  | @ -2118,6 +2118,7 @@ void GMainWindow::OnLoadAmiibo() { | |||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     std::scoped_lock lock{system.Kernel().GetHLELock()}; | ||||
|     if (nfc->IsTagActive()) { | ||||
|         QMessageBox::warning(this, tr("Error opening amiibo data file"), | ||||
|                              tr("A tag is already in use.")); | ||||
|  | @ -2148,6 +2149,7 @@ void GMainWindow::LoadAmiibo(const QString& filename) { | |||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     std::scoped_lock lock{system.Kernel().GetHLELock()}; | ||||
|     if (!nfc->LoadAmiibo(filename.toStdString())) { | ||||
|         QMessageBox::warning(this, tr("Error opening amiibo data file"), | ||||
|                              tr("Unable to open amiibo file \"%1\" for reading.").arg(filename)); | ||||
|  | @ -2164,6 +2166,7 @@ void GMainWindow::OnRemoveAmiibo() { | |||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     std::scoped_lock lock{system.Kernel().GetHLELock()}; | ||||
|     nfc->RemoveAmiibo(); | ||||
|     ui->action_Remove_Amiibo->setEnabled(false); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue