Merge pull request #666 from erwincoumans/master

expand b3ResourcePath automagic resource localization capability.
This commit is contained in:
erwincoumans
2016-06-20 14:01:31 -07:00
committed by GitHub

View File

@@ -77,6 +77,12 @@ int b3ResourcePath::findResourcePath(const char* resourceName, char* resourcePat
{
return strlen(resourcePath);
}
sprintf(resourcePath,"%s.runfiles/google3/third_party/bullet/data/%s",exePath,resourceName);
//printf("try resource at %s\n", resourcePath);
if (b3FileUtils::findFile(resourcePath, resourcePath, resourcePathMaxNumBytes))
{
return strlen(resourcePath);
}
}
}