[FastFiles] Fixed XSurface count when loading fastfiles

[Renderer] Added logging for broken materials
This commit is contained in:
RektInator
2018-12-24 21:42:39 +01:00
parent 4fa89722a2
commit e79350e586
6 changed files with 248 additions and 2 deletions

View File

@ -96,12 +96,12 @@ namespace Utils
bool StartsWith(const std::string& haystack, const std::string& needle)
{
return (haystack.size() >= needle.size() && !strncmp(needle.data(), haystack.data(), needle.size()));
return (haystack.size() >= needle.size() && haystack.substr(0, needle.size()) == needle);
}
bool EndsWith(const std::string& haystack, const std::string& needle)
{
return (haystack.size() >= needle.size() && !strncmp(needle.data(), haystack.data() + (haystack.size() - needle.size()), needle.size()));
return (haystack.size() >= needle.size() && haystack.substr(haystack.size() - needle.size()) == needle);
}
int IsSpace(int c)