mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Add instant log flush option (#209)
This commit is contained in:
		
							parent
							
								
									518f7234f7
								
							
						
					
					
						commit
						63450b662e
					
				
					 12 changed files with 45 additions and 3 deletions
				
			
		|  | @ -494,6 +494,7 @@ void Config::ReadDebuggingValues() { | |||
|     ReadBasicSetting(Settings::values.gdbstub_port); | ||||
|     ReadBasicSetting(Settings::values.renderer_debug); | ||||
|     ReadBasicSetting(Settings::values.dump_command_buffers); | ||||
|     ReadBasicSetting(Settings::values.instant_debug_log); | ||||
| 
 | ||||
|     qt_config->beginGroup(QStringLiteral("LLE")); | ||||
|     for (const auto& service_module : Service::service_module_map) { | ||||
|  | @ -1031,6 +1032,7 @@ void Config::SaveDebuggingValues() { | |||
|     WriteBasicSetting(Settings::values.use_gdbstub); | ||||
|     WriteBasicSetting(Settings::values.gdbstub_port); | ||||
|     WriteBasicSetting(Settings::values.renderer_debug); | ||||
|     WriteBasicSetting(Settings::values.instant_debug_log); | ||||
| 
 | ||||
|     qt_config->beginGroup(QStringLiteral("LLE")); | ||||
|     for (const auto& service_module : Settings::values.lle_modules) { | ||||
|  |  | |||
|  | @ -121,6 +121,7 @@ void ConfigureDebug::SetConfiguration() { | |||
|         SettingsToSlider(Settings::values.cpu_clock_percentage.GetValue())); | ||||
|     ui->clock_display_label->setText( | ||||
|         QStringLiteral("%1%").arg(Settings::values.cpu_clock_percentage.GetValue())); | ||||
|     ui->instant_debug_log->setChecked(Settings::values.instant_debug_log.GetValue()); | ||||
| } | ||||
| 
 | ||||
| void ConfigureDebug::ApplyConfiguration() { | ||||
|  | @ -138,6 +139,7 @@ void ConfigureDebug::ApplyConfiguration() { | |||
|     Settings::values.delay_start_for_lle_modules = ui->delay_start_for_lle_modules->isChecked(); | ||||
|     Settings::values.renderer_debug = ui->toggle_renderer_debug->isChecked(); | ||||
|     Settings::values.dump_command_buffers = ui->toggle_dump_command_buffers->isChecked(); | ||||
|     Settings::values.instant_debug_log = ui->instant_debug_log->isChecked(); | ||||
| 
 | ||||
|     ConfigurationShared::ApplyPerGameSetting( | ||||
|         &Settings::values.cpu_clock_percentage, ui->clock_speed_combo, | ||||
|  |  | |||
|  | @ -117,6 +117,16 @@ | |||
|         </item> | ||||
|        </layout> | ||||
|       </item> | ||||
|       <item> | ||||
|         <widget class="QCheckBox" name="instant_debug_log"> | ||||
|           <property name="text"> | ||||
|             <string>Flush log output on every message</string> | ||||
|           </property> | ||||
|           <property name="toolTip"> | ||||
|             <string><html><body>Immediately commits the debug log to file. Use this if citra crashes and the log output is being cut.<br>Enabling this feature will decrease performance, only use it for debugging purposes.</body></html></string> | ||||
|           </property> | ||||
|         </widget> | ||||
|       </item> | ||||
|      </layout> | ||||
|     </widget> | ||||
|    </item> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue