mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	common: Add C++ version of Apple authorization logic. (#6616)
This commit is contained in:
		
							parent
							
								
									03dbdfc12f
								
							
						
					
					
						commit
						bfb6a5b5de
					
				
					 10 changed files with 104 additions and 116 deletions
				
			
		|  | @ -14,7 +14,7 @@ | |||
| #include "ui_configure_audio.h" | ||||
| 
 | ||||
| #if defined(__APPLE__) | ||||
| #include "citra_qt/macos_authorization.h" | ||||
| #include "common/apple_authorization.h" | ||||
| #endif | ||||
| 
 | ||||
| ConfigureAudio::ConfigureAudio(QWidget* parent) | ||||
|  |  | |||
|  | @ -16,7 +16,7 @@ | |||
| #include "ui_configure_camera.h" | ||||
| 
 | ||||
| #if defined(__APPLE__) | ||||
| #include "citra_qt/macos_authorization.h" | ||||
| #include "common/apple_authorization.h" | ||||
| #endif | ||||
| 
 | ||||
| const std::array<std::string, 3> ConfigureCamera::Implementations = { | ||||
|  | @ -264,6 +264,9 @@ void ConfigureCamera::SetConfiguration() { | |||
|         } | ||||
|     } | ||||
|     if (camera_name[index] == "qt") { | ||||
| #ifdef __APPLE__ | ||||
|         AppleAuthorization::CheckAuthorizationForCamera(); | ||||
| #endif | ||||
|         ui->system_camera->setCurrentIndex(0); | ||||
|         if (!camera_config[index].empty()) { | ||||
|             ui->system_camera->setCurrentText(QString::fromStdString(camera_config[index])); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue