mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	
						commit
						43bb29edc5
					
				
					 18 changed files with 1190 additions and 9 deletions
				
			
		|  | @ -62,6 +62,11 @@ void Config::ReadValues() { | |||
|     qt_config->beginGroup("Miscellaneous"); | ||||
|     Settings::values.log_filter = qt_config->value("log_filter", "*:Info").toString().toStdString(); | ||||
|     qt_config->endGroup(); | ||||
| 
 | ||||
|     qt_config->beginGroup("Debugging"); | ||||
|     Settings::values.use_gdbstub = qt_config->value("use_gdbstub", false).toBool(); | ||||
|     Settings::values.gdbstub_port = qt_config->value("gdbstub_port", 24689).toInt(); | ||||
|     qt_config->endGroup(); | ||||
| } | ||||
| 
 | ||||
| void Config::SaveValues() { | ||||
|  | @ -97,6 +102,11 @@ void Config::SaveValues() { | |||
|     qt_config->beginGroup("Miscellaneous"); | ||||
|     qt_config->setValue("log_filter", QString::fromStdString(Settings::values.log_filter)); | ||||
|     qt_config->endGroup(); | ||||
| 
 | ||||
|     qt_config->beginGroup("Debugging"); | ||||
|     qt_config->setValue("use_gdbstub", Settings::values.use_gdbstub); | ||||
|     qt_config->setValue("gdbstub_port", Settings::values.gdbstub_port); | ||||
|     qt_config->endGroup(); | ||||
| } | ||||
| 
 | ||||
| void Config::Reload() { | ||||
|  |  | |||
|  | @ -44,6 +44,7 @@ | |||
| #include "core/settings.h" | ||||
| #include "core/system.h" | ||||
| #include "core/arm/disassembler/load_symbol_map.h" | ||||
| #include "core/gdbstub/gdbstub.h" | ||||
| #include "core/loader/loader.h" | ||||
| 
 | ||||
| #include "video_core/video_core.h" | ||||
|  | @ -143,6 +144,11 @@ GMainWindow::GMainWindow() : emu_thread(nullptr) | |||
| 
 | ||||
|     game_list->LoadInterfaceLayout(settings); | ||||
| 
 | ||||
|     ui.action_Use_Gdbstub->setChecked(Settings::values.use_gdbstub); | ||||
|     SetGdbstubEnabled(ui.action_Use_Gdbstub->isChecked()); | ||||
| 
 | ||||
|     GDBStub::SetServerPort(static_cast<u32>(Settings::values.gdbstub_port)); | ||||
| 
 | ||||
|     ui.action_Use_Hardware_Renderer->setChecked(Settings::values.use_hw_renderer); | ||||
|     SetHardwareRendererEnabled(ui.action_Use_Hardware_Renderer->isChecked()); | ||||
| 
 | ||||
|  | @ -175,6 +181,7 @@ GMainWindow::GMainWindow() : emu_thread(nullptr) | |||
|     connect(ui.action_Stop, SIGNAL(triggered()), this, SLOT(OnStopGame())); | ||||
|     connect(ui.action_Use_Hardware_Renderer, SIGNAL(triggered(bool)), this, SLOT(SetHardwareRendererEnabled(bool))); | ||||
|     connect(ui.action_Use_Shader_JIT, SIGNAL(triggered(bool)), this, SLOT(SetShaderJITEnabled(bool))); | ||||
|     connect(ui.action_Use_Gdbstub, SIGNAL(triggered(bool)), this, SLOT(SetGdbstubEnabled(bool))); | ||||
|     connect(ui.action_Single_Window_Mode, SIGNAL(triggered(bool)), this, SLOT(ToggleWindowMode())); | ||||
|     connect(ui.action_Hotkeys, SIGNAL(triggered()), this, SLOT(OnOpenHotkeysDialog())); | ||||
| 
 | ||||
|  | @ -449,6 +456,10 @@ void GMainWindow::SetHardwareRendererEnabled(bool enabled) { | |||
|     config.Save(); | ||||
| } | ||||
| 
 | ||||
| void GMainWindow::SetGdbstubEnabled(bool enabled) { | ||||
|     GDBStub::ToggleServer(enabled); | ||||
| } | ||||
| 
 | ||||
| void GMainWindow::SetShaderJITEnabled(bool enabled) { | ||||
|     VideoCore::g_shader_jit_enabled = enabled; | ||||
| 
 | ||||
|  |  | |||
|  | @ -99,6 +99,7 @@ private slots: | |||
|     void OnConfigure(); | ||||
|     void OnDisplayTitleBars(bool); | ||||
|     void SetHardwareRendererEnabled(bool); | ||||
|     void SetGdbstubEnabled(bool); | ||||
|     void SetShaderJITEnabled(bool); | ||||
|     void ToggleWindowMode(); | ||||
| 
 | ||||
|  |  | |||
|  | @ -75,6 +75,7 @@ | |||
|     <addaction name="separator"/> | ||||
|     <addaction name="action_Use_Hardware_Renderer"/> | ||||
|     <addaction name="action_Use_Shader_JIT"/> | ||||
|     <addaction name="action_Use_Gdbstub"/> | ||||
|     <addaction name="action_Configure"/> | ||||
|    </widget> | ||||
|    <widget class="QMenu" name="menu_View"> | ||||
|  | @ -170,6 +171,14 @@ | |||
|     <string>Use Shader JIT</string> | ||||
|    </property> | ||||
|   </action> | ||||
|   <action name="action_Use_Gdbstub"> | ||||
|     <property name="checkable"> | ||||
|       <bool>true</bool> | ||||
|     </property> | ||||
|     <property name="text"> | ||||
|       <string>Use Gdbstub</string> | ||||
|     </property> | ||||
|   </action> | ||||
|   <action name="action_Configure"> | ||||
|    <property name="text"> | ||||
|     <string>Configure ...</string> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue