| 20 | #include "GameManager.h" |
| 21 | |
| 22 | static inline std::string getTextureString_AppendResources(std::string texture) |
| 23 | { |
| 24 | std::string nTexture = "Resources/"; |
| 25 | nTexture += texture; |
| 26 | |
| 27 | auto pos = nTexture.find('.'); |
| 28 | if (pos != std::string::npos) { |
| 29 | nTexture.insert(pos, GameManager::getInstance()->isHigh() ? "-uhd" : "-hd"); |
| 30 | } |
| 31 | // GameToolbox::log("texture: {}", nTexture); |
| 32 | return nTexture; |
| 33 | } |
| 34 | |
| 35 | static inline std::string getTextureString_WithoutResources(std::string texture) |
| 36 | { |