| 440 | } |
| 441 | |
| 442 | void ckpt_extdata_create(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs) |
| 443 | { |
| 444 | const ScriptArgs args(Parser, Param, NumArgs, "extdata_create"); |
| 445 | const uint64_t id = strtoull(args.str(0), nullptr, 16); |
| 446 | const int extdataId = args.numInRange(1, 0, 0x7FFFFFFF); |
| 447 | // Fixed for the life of the archive, so 0 would be an archive nothing can |
| 448 | // ever be written to. |
| 449 | const int maxDirs = args.numInRange(2, 1, 10000); |
| 450 | const int maxFiles = args.numInRange(3, 1, 10000); |
| 451 | ReturnValue->Val->Integer = host().extdataCreate(id, (uint32_t)extdataId, maxDirs, maxFiles); |
| 452 | } |
| 453 | |
| 454 | void ckpt_extdata_delete(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs) |
| 455 | { |
nothing calls this directly
no test coverage detected