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

Function getTextureString_PromoSprite

Source/PromoItemSprite.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25static std::string getTextureString_PromoSprite(std::string texture) {
26
27 auto pos = texture.find(".");
28 if (pos != std::string::npos && GameManager::getInstance()->isHigh()) {
29 texture.insert(pos, "-hd");
30 }
31 return texture;
32}
33
34PromoItemSprite::PromoItemSprite(const char* spriteStr, std::function<void(Node*)> callback) {
35 m_pSprite = ax::Sprite::create(getTextureString_PromoSprite(spriteStr));

Callers 1

PromoItemSpriteMethod · 0.85

Calls 1

isHighMethod · 0.80

Tested by

no test coverage detected