| 4325 | } |
| 4326 | |
| 4327 | void LoadCollisionNormals(SceneGraph* scenegraph) { |
| 4328 | PROFILER_ZONE(g_profiler_ctx, "LoadCollisionNormals"); |
| 4329 | std::string path = scenegraph->level_path_.GetOriginalPathStr() + ".col_norm.zip"; |
| 4330 | if (FileExists(path, kAnyPath)) { |
| 4331 | char temp_path[kPathSize]; |
| 4332 | FindFilePath(path.c_str(), temp_path, kPathSize, kAnyPath); |
| 4333 | ExpandedZipFile expanded_zip_file; |
| 4334 | { |
| 4335 | PROFILER_ZONE(g_profiler_ctx, "Unzipping file"); |
| 4336 | UnZip(temp_path, expanded_zip_file); |
| 4337 | } |
| 4338 | std::vector<char> buffer; |
| 4339 | const char* data; |
| 4340 | const char* filename; |
| 4341 | unsigned size; |
| 4342 | expanded_zip_file.GetEntry(0, filename, data, size); |
| 4343 | buffer.resize(size); |
| 4344 | memcpy(&buffer[0], data, size); |
| 4345 | ParseCollisionNormalsFile(scenegraph, buffer); |
| 4346 | } |
| 4347 | } |
| 4348 | |
| 4349 | // Draw the current frame |
| 4350 | void Engine::Draw() { |
no test coverage detected