Compare commits

...

4 Commits

Author SHA1 Message Date
lizzie 9b3d87b367 Trigger Build 2026-08-12 19:20:13 +00:00
lizzie d5bd6630d5 Trigger Build 2026-08-12 18:07:02 +00:00
lizzie 2f7b9a096c aaaaaa chromeos
Signed-off-by: lizzie <lizzie@eden-emu.dev>
2026-08-12 16:53:39 +00:00
lizzie aa361e8600 bring back evil strings 2026-08-12 16:13:10 +00:00
2 changed files with 18 additions and 11 deletions
+16 -10
View File
@@ -195,16 +195,22 @@ public:
this->SetValue(this->GetDefault());
return;
}
if constexpr (std::is_same_v<Type, std::string>) {
this->SetValue(input);
} else if constexpr (std::is_same_v<Type, std::optional<u32>>) {
this->SetValue(u32(std::strtoul(input.c_str(), nullptr, 10)));
} else if constexpr (std::is_same_v<Type, bool>) {
this->SetValue(input == "true");
} else if constexpr (std::is_same_v<Type, float>) {
this->SetValue(std::strtof(input.c_str(), nullptr));
} else {
this->SetValue(Type(std::strtoll(input.c_str(), nullptr, 10)));
try {
if constexpr (std::is_same_v<Type, std::string>) {
this->SetValue(input);
} else if constexpr (std::is_same_v<Type, std::optional<u32>>) {
this->SetValue(u32(std::stoul(input)));
} else if constexpr (std::is_same_v<Type, bool>) {
this->SetValue(input == "true");
} else if constexpr (std::is_same_v<Type, float>) {
this->SetValue(std::stof(input));
} else {
this->SetValue(Type(std::stoll(input)));
}
} catch (std::invalid_argument&) {
this->SetValue(this->GetDefault());
} catch (std::out_of_range&) {
this->SetValue(this->GetDefault());
}
}
+2 -1
View File
@@ -113,7 +113,8 @@ else()
list(APPEND DYNARMIC_CXX_FLAGS -Wno-unused-command-line-argument)
endif()
# TODO: oaknut exceptions
if ("x86_64" IN_LIST ARCHITECTURE)
# TODO: fix chromeOS
if ("x86_64" IN_LIST ARCHITECTURE AND NOT ANDROID)
list(APPEND DYNARMIC_CXX_FLAGS -fno-exceptions)
endif()
endif()