mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-01 19:13:03 +08:00
Merge pull request #132 from liesauer/master
Fix standalone reading config item type casting bug
This commit is contained in:
@ -73,6 +73,10 @@ namespace UnityExplorer.Loader.Standalone
|
|||||||
return bool.Parse(value);
|
return bool.Parse(value);
|
||||||
else if (elementType == typeof(int))
|
else if (elementType == typeof(int))
|
||||||
return int.Parse(value);
|
return int.Parse(value);
|
||||||
|
else if (elementType == typeof(float))
|
||||||
|
return float.Parse(value);
|
||||||
|
else if (elementType.IsEnum)
|
||||||
|
return Enum.Parse(elementType, value);
|
||||||
else
|
else
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user