0
0
mirror of https://github.com/Ishan09811/pine.git synced 2025-04-29 08:25:10 +00:00

Update jvm.h

This commit is contained in:
Ishan09811 2025-01-03 23:57:59 +05:30 committed by GitHub
parent ae44837e32
commit 0dfc4cbce3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ namespace skyline {
* @param key A null terminated string containing the key of the setting to get * @param key A null terminated string containing the key of the setting to get
*/ */
template<typename T> template<typename T>
requires std::is_integral_v<T> || std::is_enum_v<T> requires std::is_integral_v<T> || std::is_enum_v<T> || std::is_floating_point_v<T>
T GetInt(const std::string_view &key) { T GetInt(const std::string_view &key) {
return static_cast<T>(env->GetIntField(settingsInstance, env->GetFieldID(settingsClass, key.data(), "I"))); return static_cast<T>(env->GetIntField(settingsInstance, env->GetFieldID(settingsClass, key.data(), "I")));
} }