| 57 | } |
| 58 | |
| 59 | static char* ResolveFilePath(const dmURI::Parts* uri, const char* path, char* buffer, uint32_t buffer_len) |
| 60 | { |
| 61 | char mountpath[DMPATH_MAX_PATH]; |
| 62 | dmSnPrintf(mountpath, sizeof(mountpath), "%s%s%s", uri->m_Location, uri->m_Path, path); |
| 63 | |
| 64 | if (dmSys::RESULT_OK != dmSys::ResolveMountFileName(buffer, buffer_len, mountpath)) |
| 65 | { |
| 66 | // on some platforms, performing operations on non existing files will halt the engine |
| 67 | // so we're better off returning here immediately |
| 68 | return 0; |
| 69 | } |
| 70 | return buffer; |
| 71 | } |
| 72 | |
| 73 | static dmResourceProvider::Result SysResultToProviderResult(dmSys::Result r) |
| 74 | { |
no test coverage detected