From e02d9ddb874d0bb39bd4e209bcbd6e6a87dfdc5c Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Fri, 22 Nov 2019 00:57:03 -0500 Subject: [PATCH] handle unsigned ints and sbytes --- .../DataFormats/Database/UTF/UTFDataFormat.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CSharp/Plugins/UniversalEditor.Plugins.CRI/DataFormats/Database/UTF/UTFDataFormat.cs b/CSharp/Plugins/UniversalEditor.Plugins.CRI/DataFormats/Database/UTF/UTFDataFormat.cs index 2065ce0c..2564ed71 100644 --- a/CSharp/Plugins/UniversalEditor.Plugins.CRI/DataFormats/Database/UTF/UTFDataFormat.cs +++ b/CSharp/Plugins/UniversalEditor.Plugins.CRI/DataFormats/Database/UTF/UTFDataFormat.cs @@ -338,11 +338,15 @@ namespace UniversalEditor.Plugins.CRI.DataFormats.Database.UTF private UTFColumnDataType UTFDataTypeForSystemDataType(Type dataType) { if (dataType == typeof(byte)) return UTFColumnDataType.Byte; + else if (dataType == typeof(sbyte)) return UTFColumnDataType.Byte; else if (dataType == typeof(byte[])) return UTFColumnDataType.Data; else if (dataType == typeof(float)) return UTFColumnDataType.Float; else if (dataType == typeof(int)) return UTFColumnDataType.Int; + else if (dataType == typeof(uint)) return UTFColumnDataType.Int; else if (dataType == typeof(long)) return UTFColumnDataType.Long; + else if (dataType == typeof(ulong)) return UTFColumnDataType.Long; else if (dataType == typeof(short)) return UTFColumnDataType.Short; + else if (dataType == typeof(ushort)) return UTFColumnDataType.Short; else if (dataType == typeof(string)) return UTFColumnDataType.String; return UTFColumnDataType.Mask; }