update: 完善 JsonBuilder
parent
f85eb8d2bb
commit
804618b12b
|
|
@ -1,5 +1,4 @@
|
||||||
|
#if GURU_SDK_DEV
|
||||||
|
|
||||||
|
|
||||||
namespace Guru.Editor
|
namespace Guru.Editor
|
||||||
{
|
{
|
||||||
|
|
@ -618,10 +617,10 @@ namespace Guru.Editor
|
||||||
line = lines[i];
|
line = lines[i];
|
||||||
if(string.IsNullOrEmpty(line)) continue;
|
if(string.IsNullOrEmpty(line)) continue;
|
||||||
raw = lines[i].Split(',');
|
raw = lines[i].Split(',');
|
||||||
key = "";
|
|
||||||
value = "";
|
value = "";
|
||||||
key = raw[0];
|
key = raw[0];
|
||||||
if(raw.Length > 0) value = raw[1];
|
if(string.IsNullOrEmpty(key)) continue;
|
||||||
|
if(raw.Length > 1) value = raw[1];
|
||||||
dict[key] = value;
|
dict[key] = value;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
@ -823,8 +822,6 @@ namespace Guru.Editor
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#region TEST
|
#region TEST
|
||||||
|
|
||||||
#if GURU_SDK_DEV
|
#if GURU_SDK_DEV
|
||||||
|
|
@ -860,6 +857,7 @@ namespace Guru.Editor
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
Loading…
Reference in New Issue