From 987b607cb0b5e5529828f0bc4dce688b2c127f37 Mon Sep 17 00:00:00 2001 From: msuih Date: Fri, 4 Jan 2019 20:37:43 +0200 Subject: [PATCH] Add debug console mode to settings --- rpcs3/Json/tooltips.json | 1 + rpcs3/rpcs3qt/emu_settings.h | 2 ++ rpcs3/rpcs3qt/settings_dialog.cpp | 3 +++ rpcs3/rpcs3qt/settings_dialog.ui | 7 +++++++ 4 files changed, 13 insertions(+) diff --git a/rpcs3/Json/tooltips.json b/rpcs3/Json/tooltips.json index 2fd48716ae..c75e063c4f 100644 --- a/rpcs3/Json/tooltips.json +++ b/rpcs3/Json/tooltips.json @@ -50,6 +50,7 @@ "accurateGETLLAR": "Never use this.", "accuratePUTLLUC": "Never use this.", "hookStFunc": "Allows to hook some functions like 'memcpy' replacing them with high-level implementations. May do nothing or break things. Experimental.", + "debugConsoleMode": "Increases the amount of usable system memory to match a DECR console and more.\nCauses some software to behave differently than on retail hardware.", "readColor": "Never use this.", "dumpDepth": "Never use this.", "readDepth": "Never use this.", diff --git a/rpcs3/rpcs3qt/emu_settings.h b/rpcs3/rpcs3qt/emu_settings.h index 5b06c0321a..821628c3ff 100644 --- a/rpcs3/rpcs3qt/emu_settings.h +++ b/rpcs3/rpcs3qt/emu_settings.h @@ -46,6 +46,7 @@ public: SPUBlockSize, SPUCache, SPUVerification, + DebugConsoleMode, // Graphics Renderer, @@ -254,6 +255,7 @@ private: { SPUBlockSize, { "Core", "SPU Block Size"}}, { SPUCache, { "Core", "SPU Cache"}}, { SPUVerification, { "Core", "SPU Verification"}}, + { DebugConsoleMode, { "Core", "Debug Console Mode"}}, // Graphics Tab { Renderer, { "Video", "Renderer"}}, diff --git a/rpcs3/rpcs3qt/settings_dialog.cpp b/rpcs3/rpcs3qt/settings_dialog.cpp index 5603001a26..894ae17320 100644 --- a/rpcs3/rpcs3qt/settings_dialog.cpp +++ b/rpcs3/rpcs3qt/settings_dialog.cpp @@ -1304,6 +1304,9 @@ settings_dialog::settings_dialog(std::shared_ptr guiSettings, std: xemu_settings->EnhanceCheckBox(ui->hookStFunc, emu_settings::HookStaticFuncs); SubscribeTooltip(ui->hookStFunc, json_debug["hookStFunc"].toString()); + xemu_settings->EnhanceCheckBox(ui->debugConsoleMode, emu_settings::DebugConsoleMode); + SubscribeTooltip(ui->debugConsoleMode, json_debug["debugConsoleMode"].toString()); + // Layout fix for High Dpi layout()->setSizeConstraint(QLayout::SetFixedSize); } diff --git a/rpcs3/rpcs3qt/settings_dialog.ui b/rpcs3/rpcs3qt/settings_dialog.ui index 0912ea21e4..44cf9122cb 100644 --- a/rpcs3/rpcs3qt/settings_dialog.ui +++ b/rpcs3/rpcs3qt/settings_dialog.ui @@ -2316,6 +2316,13 @@ + + + + Debug Console Mode + + +