| 47 | } |
| 48 | |
| 49 | void Resource_exists(xsMachine *the) |
| 50 | { |
| 51 | xsStringValue path = xsToString(xsArg(0)); |
| 52 | const void *data = NULL; |
| 53 | size_t size; |
| 54 | if ((xsToInteger(xsArgc) > 1) && xsTest(xsArg(1))) |
| 55 | data = fxGetArchiveData(the, xsGetHostData(xsArg(1)), path, &size); |
| 56 | if (!data) |
| 57 | data = fxGetArchiveData(the, the->archive, path, &size); |
| 58 | if (!data) |
| 59 | data = mcGetResource(the, path, &size); |
| 60 | xsResult = data ? xsTrue : xsFalse; |
| 61 | } |
| 62 | |
| 63 | void Resource_get_byteLength(xsMachine *the) |
| 64 | { |
nothing calls this directly
no test coverage detected