mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-19 09:54:54 +00:00
made an option for logging to be synced by default instead of async
This commit is contained in:
parent
02dcf4d45c
commit
8c4f386641
3 changed files with 32 additions and 9 deletions
|
@ -13,6 +13,7 @@ bool isNeo = false;
|
|||
u32 screenWidth = 1280;
|
||||
u32 screenHeight = 720;
|
||||
std::string logFilter;
|
||||
std::string logType = "sync";
|
||||
bool isDebugDump = false;
|
||||
|
||||
bool isNeoMode() {
|
||||
|
@ -31,6 +32,10 @@ std::string getLogFilter() {
|
|||
return logFilter;
|
||||
}
|
||||
|
||||
std::string getLogType() {
|
||||
return logType;
|
||||
}
|
||||
|
||||
bool debugDump() {
|
||||
return isDebugDump;
|
||||
}
|
||||
|
@ -59,6 +64,7 @@ void load(const std::filesystem::path& path) {
|
|||
|
||||
isNeo = toml::find_or<toml::boolean>(general, "isPS4Pro", false);
|
||||
logFilter = toml::find_or<toml::string>(general, "logFilter", "");
|
||||
logType = toml::find_or<toml::string>(general, "logType", "sync");
|
||||
}
|
||||
}
|
||||
if (data.contains("GPU")) {
|
||||
|
@ -100,6 +106,7 @@ void save(const std::filesystem::path& path) {
|
|||
|
||||
data["General"]["isPS4Pro"] = isNeo;
|
||||
data["General"]["logFilter"] = logFilter;
|
||||
data["General"]["logType"] = logType;
|
||||
data["GPU"]["screenWidth"] = screenWidth;
|
||||
data["GPU"]["screenHeight"] = screenHeight;
|
||||
data["Debug"]["DebugDump"] = isDebugDump;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue