MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / getTextureString_AppendResources

Function getTextureString_AppendResources

Source/GameToolbox/getTextureString.cpp:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include "GameManager.h"
21
22static 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
35static inline std::string getTextureString_WithoutResources(std::string texture)
36{

Callers

nothing calls this directly

Calls 1

isHighMethod · 0.80

Tested by

no test coverage detected