mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-13 04:17:27 +08:00
[O] ResetTouchAfterTrack -> ResetTouch, add press key to reset (#93)
* [O] ResetTouchAfterTrack -> ResetTouch, add press key to reset * fix * update * fix: Remove not work --------- Co-authored-by: Menci <mencici@msn.com>
This commit is contained in:
@@ -21,6 +21,16 @@ public static class Utility
|
||||
};
|
||||
}
|
||||
|
||||
public static bool IsTrutyOrDefault(TomlValue value, bool defaultValue = false)
|
||||
{
|
||||
return value switch
|
||||
{
|
||||
TomlBoolean boolean => boolean.Value,
|
||||
TomlLong @long => @long.Value != 0,
|
||||
_ => defaultValue
|
||||
};
|
||||
}
|
||||
|
||||
public static bool IsIntegerType(Type type)
|
||||
{
|
||||
return type == typeof(sbyte) || type == typeof(short) || type == typeof(int) || type == typeof(long)
|
||||
|
||||
Reference in New Issue
Block a user