1111
This commit is contained in:
@@ -36,4 +36,25 @@ function printT(T)
|
||||
function LoadConfig(Path)
|
||||
{
|
||||
dofile("/dp_s/" + Path);
|
||||
}
|
||||
|
||||
if (getroottable().rawin("DP_S_VERSION") && DP_S_VERSION >= 25.329) {
|
||||
function print(Object) {
|
||||
switch (typeof Object) {
|
||||
case "table":
|
||||
case "array": {
|
||||
local str = Json.Encode(Object);
|
||||
Sq_OutPutTable(str);
|
||||
break;
|
||||
}
|
||||
case "string":
|
||||
case "integer": {
|
||||
output(Object);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
output(Object);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user