This commit is contained in:
lenheart
2025-04-05 22:03:40 +08:00
parent 4d65103501
commit eeb773e723
53 changed files with 2348 additions and 505 deletions

View File

@@ -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;
}
}
}