mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-19 09:54:54 +00:00
config option to enable libc lle
This commit is contained in:
parent
63d8d4d833
commit
540c21d382
4 changed files with 37 additions and 1 deletions
|
@ -15,7 +15,11 @@ u32 screenHeight = 720;
|
|||
std::string logFilter;
|
||||
std::string logType = "sync";
|
||||
bool isDebugDump = false;
|
||||
bool isLibc = true;
|
||||
|
||||
bool isLleLibc() {
|
||||
return isLibc;
|
||||
}
|
||||
bool isNeoMode() {
|
||||
return isNeo;
|
||||
}
|
||||
|
@ -84,6 +88,14 @@ void load(const std::filesystem::path& path) {
|
|||
isDebugDump = toml::find_or<toml::boolean>(debug, "DebugDump", false);
|
||||
}
|
||||
}
|
||||
if (data.contains("LLE")) {
|
||||
auto generalResult = toml::expect<toml::value>(data.at("LLE"));
|
||||
if (generalResult.is_ok()) {
|
||||
auto general = generalResult.unwrap();
|
||||
|
||||
isLibc = toml::find_or<toml::boolean>(general, "libc", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
void save(const std::filesystem::path& path) {
|
||||
toml::basic_value<toml::preserve_comments> data;
|
||||
|
@ -110,6 +122,7 @@ void save(const std::filesystem::path& path) {
|
|||
data["GPU"]["screenWidth"] = screenWidth;
|
||||
data["GPU"]["screenHeight"] = screenHeight;
|
||||
data["Debug"]["DebugDump"] = isDebugDump;
|
||||
data["LLE"]["libc"] = isLibc;
|
||||
|
||||
std::ofstream file(path, std::ios::out);
|
||||
file << data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue