Fix json parsing.
parent
81dc94c7e3
commit
e0b826169a
|
@ -212,7 +212,7 @@ export namespace Live2DCubismFramework
|
||||||
*/
|
*/
|
||||||
public setErrorNotForClientCall(errorStr: string): Value
|
public setErrorNotForClientCall(errorStr: string): Value
|
||||||
{
|
{
|
||||||
return Value.errorValue;
|
return JsonError.errorValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -234,11 +234,11 @@ export namespace Live2DCubismFramework
|
||||||
*/
|
*/
|
||||||
public static staticReleaseNotForClientCall(): void
|
public static staticReleaseNotForClientCall(): void
|
||||||
{
|
{
|
||||||
JsonBoolean.trueValue = void 0;
|
JsonBoolean.trueValue = null;
|
||||||
JsonBoolean.falseValue = void 0;
|
JsonBoolean.falseValue = null;
|
||||||
JsonError.errorValue = void 0;
|
JsonError.errorValue = null;
|
||||||
Value.nullValue = void 0;
|
Value.nullValue = null;
|
||||||
Value.s_dummyKeys = void 0;
|
Value.s_dummyKeys = null;
|
||||||
|
|
||||||
JsonBoolean.trueValue = null;
|
JsonBoolean.trueValue = null;
|
||||||
JsonBoolean.falseValue = null;
|
JsonBoolean.falseValue = null;
|
||||||
|
@ -296,7 +296,6 @@ export namespace Live2DCubismFramework
|
||||||
if(!succeeded)
|
if(!succeeded)
|
||||||
{
|
{
|
||||||
CubismJson.delete(json);
|
CubismJson.delete(json);
|
||||||
console.log("parseBytes is failed");
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -312,7 +311,6 @@ export namespace Live2DCubismFramework
|
||||||
*/
|
*/
|
||||||
public static delete(instance: CubismJson)
|
public static delete(instance: CubismJson)
|
||||||
{
|
{
|
||||||
instance = void 0;
|
|
||||||
instance = null;
|
instance = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -369,7 +367,6 @@ export namespace Live2DCubismFramework
|
||||||
|
|
||||||
if(this._error)
|
if(this._error)
|
||||||
{
|
{
|
||||||
console.log(this._error);
|
|
||||||
let strbuf: string = '\0';
|
let strbuf: string = '\0';
|
||||||
strbuf = "Json parse error : @line " + (this._lineCount + 1) + "\n";
|
strbuf = "Json parse error : @line " + (this._lineCount + 1) + "\n";
|
||||||
this._root = new JsonString(strbuf);
|
this._root = new JsonString(strbuf);
|
||||||
|
|
Loading…
Reference in New Issue