Fix standalone reading config item type casting bug

This commit is contained in:
L!εsAμεr
2022-03-31 21:07:06 +08:00
parent 710b4ba74a
commit 7eda249ddb

View File

@ -73,6 +73,10 @@ namespace UnityExplorer.Loader.Standalone
return bool.Parse(value);
else if (elementType == typeof(int))
return int.Parse(value);
else if (elementType == typeof(float))
return float.Parse(value);
else if (elementType.IsEnum)
return Enum.Parse(elementType, value);
else
return value;
}