Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 831 vs 832 for /trunk/Source Code/Physics/PhysX/PhysX.cpp

Diff revisions: vs.
  @@ -214,14 +214,8 @@
214 214 if (it != std::cend(_gMeshCache)) {
215 215 loadState = 0;
216 216 } else {
217 - FILE* fp = fopen(nodeName.c_str(), "rb");
218 - if (fp) {
219 - fseek(fp, 0, SEEK_END);
220 - physx::PxU32 filesize = ftell(fp);
221 - fclose(fp);
222 - if (filesize != 0) {
223 - loadState = 1;
224 - }
217 + if (fileExists(nodeName) {
218 + loadState = 1;
225 219 }
226 220 }
227 221