mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Add log regex filter (#9)
This commit is contained in:
		
							parent
							
								
									bf0127d0ae
								
							
						
					
					
						commit
						f112d975b9
					
				
					 8 changed files with 57 additions and 2 deletions
				
			
		|  | @ -536,6 +536,7 @@ void Config::ReadMiscellaneousValues() { | |||
|     qt_config->beginGroup(QStringLiteral("Miscellaneous")); | ||||
| 
 | ||||
|     ReadBasicSetting(Settings::values.log_filter); | ||||
|     ReadBasicSetting(Settings::values.log_regex_filter); | ||||
|     ReadBasicSetting(Settings::values.enable_gamemode); | ||||
| 
 | ||||
|     qt_config->endGroup(); | ||||
|  | @ -1068,6 +1069,7 @@ void Config::SaveMiscellaneousValues() { | |||
|     qt_config->beginGroup(QStringLiteral("Miscellaneous")); | ||||
| 
 | ||||
|     WriteBasicSetting(Settings::values.log_filter); | ||||
|     WriteBasicSetting(Settings::values.log_regex_filter); | ||||
|     WriteBasicSetting(Settings::values.enable_gamemode); | ||||
| 
 | ||||
|     qt_config->endGroup(); | ||||
|  |  | |||
|  | @ -97,6 +97,8 @@ void ConfigureDebug::SetConfiguration() { | |||
|     ui->toggle_console->setEnabled(!is_powered_on); | ||||
|     ui->toggle_console->setChecked(UISettings::values.show_console.GetValue()); | ||||
|     ui->log_filter_edit->setText(QString::fromStdString(Settings::values.log_filter.GetValue())); | ||||
|     ui->log_regex_filter_edit->setText( | ||||
|         QString::fromStdString(Settings::values.log_regex_filter.GetValue())); | ||||
|     ui->toggle_cpu_jit->setChecked(Settings::values.use_cpu_jit.GetValue()); | ||||
|     ui->delay_start_for_lle_modules->setChecked( | ||||
|         Settings::values.delay_start_for_lle_modules.GetValue()); | ||||
|  | @ -126,10 +128,12 @@ void ConfigureDebug::ApplyConfiguration() { | |||
|     Settings::values.gdbstub_port = ui->gdbport_spinbox->value(); | ||||
|     UISettings::values.show_console = ui->toggle_console->isChecked(); | ||||
|     Settings::values.log_filter = ui->log_filter_edit->text().toStdString(); | ||||
|     Settings::values.log_regex_filter = ui->log_regex_filter_edit->text().toStdString(); | ||||
|     Debugger::ToggleConsole(); | ||||
|     Common::Log::Filter filter; | ||||
|     filter.ParseFilterString(Settings::values.log_filter.GetValue()); | ||||
|     Common::Log::SetGlobalFilter(filter); | ||||
|     Common::Log::SetRegexFilter(Settings::values.log_regex_filter.GetValue()); | ||||
|     Settings::values.use_cpu_jit = ui->toggle_cpu_jit->isChecked(); | ||||
|     Settings::values.delay_start_for_lle_modules = ui->delay_start_for_lle_modules->isChecked(); | ||||
|     Settings::values.renderer_debug = ui->toggle_renderer_debug->isChecked(); | ||||
|  |  | |||
|  | @ -85,6 +85,20 @@ | |||
|         </item> | ||||
|        </layout> | ||||
|       </item> | ||||
|       <item> | ||||
|        <layout class="QHBoxLayout" name="horizontalLayout"> | ||||
|         <item> | ||||
|          <widget class="QLabel" name="label_3"> | ||||
|           <property name="text"> | ||||
|            <string>Regex Log Filter</string> | ||||
|           </property> | ||||
|          </widget> | ||||
|         </item> | ||||
|         <item> | ||||
|          <widget class="QLineEdit" name="log_regex_filter_edit"/> | ||||
|         </item> | ||||
|        </layout> | ||||
|       </item> | ||||
|       <item> | ||||
|        <layout class="QHBoxLayout" name="horizontalLayout_2"> | ||||
|         <item> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue