mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	frontend: Add setting for whether to use LLE applets. (#7345)
This commit is contained in:
		
							parent
							
								
									c59ef7d793
								
							
						
					
					
						commit
						f26044bb88
					
				
					 15 changed files with 88 additions and 40 deletions
				
			
		|  | @ -568,11 +568,13 @@ Result AppletManager::PrepareToStartLibraryApplet(AppletId applet_id) { | |||
| 
 | ||||
|     capture_buffer_info.reset(); | ||||
| 
 | ||||
|     auto cfg = Service::CFG::GetModule(system); | ||||
|     auto process = | ||||
|         NS::LaunchTitle(FS::MediaType::NAND, GetTitleIdForApplet(applet_id, cfg->GetRegionValue())); | ||||
|     if (process) { | ||||
|         return ResultSuccess; | ||||
|     if (Settings::values.lle_applets) { | ||||
|         auto cfg = Service::CFG::GetModule(system); | ||||
|         auto process = NS::LaunchTitle(FS::MediaType::NAND, | ||||
|                                        GetTitleIdForApplet(applet_id, cfg->GetRegionValue())); | ||||
|         if (process) { | ||||
|             return ResultSuccess; | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     // If we weren't able to load the native applet title, try to fallback to an HLE implementation.
 | ||||
|  | @ -595,11 +597,13 @@ Result AppletManager::PreloadLibraryApplet(AppletId applet_id) { | |||
|     last_library_launcher_slot = active_slot; | ||||
|     last_prepared_library_applet = applet_id; | ||||
| 
 | ||||
|     auto cfg = Service::CFG::GetModule(system); | ||||
|     auto process = | ||||
|         NS::LaunchTitle(FS::MediaType::NAND, GetTitleIdForApplet(applet_id, cfg->GetRegionValue())); | ||||
|     if (process) { | ||||
|         return ResultSuccess; | ||||
|     if (Settings::values.lle_applets) { | ||||
|         auto cfg = Service::CFG::GetModule(system); | ||||
|         auto process = NS::LaunchTitle(FS::MediaType::NAND, | ||||
|                                        GetTitleIdForApplet(applet_id, cfg->GetRegionValue())); | ||||
|         if (process) { | ||||
|             return ResultSuccess; | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     // If we weren't able to load the native applet title, try to fallback to an HLE implementation.
 | ||||
|  |  | |||
|  | @ -155,6 +155,8 @@ void TelemetrySession::AddInitialInfo(Loader::AppLoader& app_loader) { | |||
|              static_cast<int>(Settings::values.mono_render_option.GetValue())); | ||||
|     AddField(Telemetry::FieldType::UserConfig, "System_IsNew3ds", | ||||
|              Settings::values.is_new_3ds.GetValue()); | ||||
|     AddField(Telemetry::FieldType::UserConfig, "System_LLEApplets", | ||||
|              Settings::values.lle_applets.GetValue()); | ||||
|     AddField(Telemetry::FieldType::UserConfig, "System_RegionValue", | ||||
|              Settings::values.region_value.GetValue()); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue