mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 14:39:18 +02:00
Replace starts_with and ends_with with string class methods
This commit is contained in:
@@ -305,7 +305,7 @@ size_t NvTextureManager::FetchTexture(std::string path, int format_hint,
|
||||
path = ToLower(path);
|
||||
// temporary code for legacy assets -- textures with names beginning with #
|
||||
// are to be sharpened
|
||||
if ((starts_with(path, "#")) || (contains(path, "/#"))) {
|
||||
if (path.starts_with("#") || contains(path, "/#")) {
|
||||
traits += '#';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user