mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Add config to silence all logs
This commit is contained in:
parent
943368912b
commit
efafda2650
6 changed files with 20 additions and 0 deletions
|
@ -1657,6 +1657,12 @@ void Emulator::Run()
|
||||||
m_pause_amend_time = 0;
|
m_pause_amend_time = 0;
|
||||||
m_state = system_state::running;
|
m_state = system_state::running;
|
||||||
|
|
||||||
|
if (g_cfg.misc.silence_all_logs)
|
||||||
|
{
|
||||||
|
sys_log.notice("Now disabling logging...");
|
||||||
|
logs::silence();
|
||||||
|
}
|
||||||
|
|
||||||
auto on_select = [](u32, cpu_thread& cpu)
|
auto on_select = [](u32, cpu_thread& cpu)
|
||||||
{
|
{
|
||||||
cpu.state -= cpu_flag::stop;
|
cpu.state -= cpu_flag::stop;
|
||||||
|
|
|
@ -624,6 +624,7 @@ struct cfg_root : cfg::node
|
||||||
cfg::_bool show_shader_compilation_hint{ this, "Show shader compilation hint", true, true };
|
cfg::_bool show_shader_compilation_hint{ this, "Show shader compilation hint", true, true };
|
||||||
cfg::_bool use_native_interface{ this, "Use native user interface", true };
|
cfg::_bool use_native_interface{ this, "Use native user interface", true };
|
||||||
cfg::string gdb_server{this, "GDB Server", "127.0.0.1:2345"};
|
cfg::string gdb_server{this, "GDB Server", "127.0.0.1:2345"};
|
||||||
|
cfg::_bool silence_all_logs{this, "Silence All Logs", false, false};
|
||||||
|
|
||||||
} misc{this};
|
} misc{this};
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"liblv2": "This closely emulates how games can load and unload system module files on a real PlayStation 3.\nSome games require this.\nThis is the preferred option."
|
"liblv2": "This closely emulates how games can load and unload system module files on a real PlayStation 3.\nSome games require this.\nThis is the preferred option."
|
||||||
},
|
},
|
||||||
"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.",
|
"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.",
|
||||||
|
"silenceAllLogs": "Stop writing any logs after game startup. Don't use unless you believe it's necessary.",
|
||||||
"readColor": "Initializes render target memory using vm memory.",
|
"readColor": "Initializes render target memory using vm memory.",
|
||||||
"readDepth": "Initializes render target memory using vm memory.",
|
"readDepth": "Initializes render target memory using vm memory.",
|
||||||
"dumpDepth": "Writes depth buffer values to vm memory.",
|
"dumpDepth": "Writes depth buffer values to vm memory.",
|
||||||
|
|
|
@ -46,6 +46,7 @@ public:
|
||||||
SPUBlockSize,
|
SPUBlockSize,
|
||||||
SPUCache,
|
SPUCache,
|
||||||
DebugConsoleMode,
|
DebugConsoleMode,
|
||||||
|
SilenceAllLogs,
|
||||||
MaxSPURSThreads,
|
MaxSPURSThreads,
|
||||||
SleepTimersAccuracy,
|
SleepTimersAccuracy,
|
||||||
ClocksScale,
|
ClocksScale,
|
||||||
|
@ -368,6 +369,7 @@ private:
|
||||||
{ ShowWelcomeScreen, { "Miscellaneous", "Show Welcome Screen"}},
|
{ ShowWelcomeScreen, { "Miscellaneous", "Show Welcome Screen"}},
|
||||||
{ UseNativeInterface, { "Miscellaneous", "Use native user interface"}},
|
{ UseNativeInterface, { "Miscellaneous", "Use native user interface"}},
|
||||||
{ ShowShaderCompilationHint, { "Miscellaneous", "Show shader compilation hint"}},
|
{ ShowShaderCompilationHint, { "Miscellaneous", "Show shader compilation hint"}},
|
||||||
|
{ SilenceAllLogs, { "Miscellaneous", "Silence All Logs" }},
|
||||||
|
|
||||||
// Networking
|
// Networking
|
||||||
{ ConnectionStatus, { "Net", "Connection status"}},
|
{ ConnectionStatus, { "Net", "Connection status"}},
|
||||||
|
|
|
@ -920,6 +920,9 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> guiSettings, std:
|
||||||
xemu_settings->EnhanceCheckBox(ui->debugConsoleMode, emu_settings::DebugConsoleMode);
|
xemu_settings->EnhanceCheckBox(ui->debugConsoleMode, emu_settings::DebugConsoleMode);
|
||||||
SubscribeTooltip(ui->debugConsoleMode, json_advanced["debugConsoleMode"].toString());
|
SubscribeTooltip(ui->debugConsoleMode, json_advanced["debugConsoleMode"].toString());
|
||||||
|
|
||||||
|
xemu_settings->EnhanceCheckBox(ui->silenceAllLogs, emu_settings::SilenceAllLogs);
|
||||||
|
SubscribeTooltip(ui->silenceAllLogs, json_advanced["silenceAllLogs"].toString());
|
||||||
|
|
||||||
xemu_settings->EnhanceCheckBox(ui->readColor, emu_settings::ReadColorBuffers);
|
xemu_settings->EnhanceCheckBox(ui->readColor, emu_settings::ReadColorBuffers);
|
||||||
SubscribeTooltip(ui->readColor, json_advanced["readColor"].toString());
|
SubscribeTooltip(ui->readColor, json_advanced["readColor"].toString());
|
||||||
|
|
||||||
|
|
|
@ -1582,6 +1582,13 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="silenceAllLogs">
|
||||||
|
<property name="text">
|
||||||
|
<string>Silence All Logs</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue