mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-05-12 16:09:42 -06:00
Log read setting from old toml outside the [Log] section (#4342)
This commit is contained in:
parent
34b35b526e
commit
6633d7252c
@ -545,6 +545,29 @@ bool EmulatorSettingsImpl::TransferSettings() {
|
||||
#endif
|
||||
}
|
||||
|
||||
if (og_data.contains("General")) {
|
||||
const toml::value& general = og_data.at("General");
|
||||
auto& s = m_log;
|
||||
|
||||
setFromToml(s.filter, general, "logFilter");
|
||||
setFromToml(s.skip_duplicate, general, "isIdenticalLogGrouped");
|
||||
Setting<std::string> logType("sync");
|
||||
setFromToml(logType, general, "logType");
|
||||
if (logType.get() == "sync") {
|
||||
s.sync = true;
|
||||
} else {
|
||||
s.sync = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (og_data.contains("Debug")) {
|
||||
const toml::value& debug = og_data.at("Debug");
|
||||
auto& s = m_log;
|
||||
|
||||
setFromToml(s.enable, debug, "logEnabled");
|
||||
setFromToml(s.separate, debug, "isSeparateLogFilesEnabled");
|
||||
}
|
||||
|
||||
if (og_data.contains("Input")) {
|
||||
const toml::value& input = og_data.at("Input");
|
||||
auto& s = m_input;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user