| 114 | namespace dmGameSystem |
| 115 | { |
| 116 | int ReportPathError(lua_State* L, dmResource::Result result, dmhash_t path_hash) |
| 117 | { |
| 118 | const char* format = 0; |
| 119 | switch(result) |
| 120 | { |
| 121 | case dmResource::RESULT_RESOURCE_NOT_FOUND: |
| 122 | format = "The resource was not found (%d): %llu, %s"; |
| 123 | break; |
| 124 | case dmResource::RESULT_NOT_SUPPORTED: |
| 125 | format = "The resource type does not support this operation (%d): %llu, %s"; |
| 126 | break; |
| 127 | default: |
| 128 | format = "The resource was not updated (%d): %llu, %s"; |
| 129 | break; |
| 130 | } |
| 131 | return luaL_error(L, format, result, (unsigned long long)path_hash, dmHashReverseSafe64(path_hash)); |
| 132 | } |
| 133 | |
| 134 | void* CheckResource(lua_State* L, dmResource::HFactory factory, dmhash_t path_hash, const char* resource_ext) |
| 135 | { |
no test coverage detected