mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-22 05:07:01 +02:00
ok
This commit is contained in:
parent
035caec801
commit
efceeef46f
1 changed files with 3 additions and 3 deletions
|
|
@ -191,13 +191,13 @@ public:
|
||||||
if constexpr (std::is_same_v<Type, std::string>) {
|
if constexpr (std::is_same_v<Type, std::string>) {
|
||||||
this->SetValue(input);
|
this->SetValue(input);
|
||||||
} else if constexpr (std::is_same_v<Type, std::optional<u32>>) {
|
} else if constexpr (std::is_same_v<Type, std::optional<u32>>) {
|
||||||
this->SetValue(u32(std::strtoul(input.c_str(), NULL, 10)));
|
this->SetValue(u32(std::strtoul(input.c_str(), nullptr, 10)));
|
||||||
} else if constexpr (std::is_same_v<Type, bool>) {
|
} else if constexpr (std::is_same_v<Type, bool>) {
|
||||||
this->SetValue(input == "true");
|
this->SetValue(input == "true");
|
||||||
} else if constexpr (std::is_same_v<Type, float>) {
|
} else if constexpr (std::is_same_v<Type, float>) {
|
||||||
this->SetValue(std::strtof(input.c_str(), NULL));
|
this->SetValue(std::strtof(input.c_str(), nullptr));
|
||||||
} else {
|
} else {
|
||||||
this->SetValue(Type(std::strtoll(input.c_str(), NULL)));
|
this->SetValue(Type(std::strtoll(input.c_str(), nullptr, 10)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue