Remove AUTO_VAR macro and _toString function (#592)

This commit is contained in:
void_17
2026-03-06 02:11:18 +07:00
committed by GitHub
parent 7d6658fe5b
commit 55231bb8d3
294 changed files with 5067 additions and 5773 deletions

View File

@@ -51,9 +51,9 @@ void TextureManager::registerName(const wstring &name, Texture *texture)
void TextureManager::registerTexture(Texture *texture)
{
for(AUTO_VAR(it, idToTextureMap.begin()); it != idToTextureMap.end(); ++it)
for(auto& it : idToTextureMap)
{
if(it->second == texture)
if(it.second == texture)
{
//Minecraft.getInstance().getLogger().warning("TextureManager.registerTexture called, but this texture has " + "already been registered. ignoring.");
app.DebugPrintf("TextureManager.registerTexture called, but this texture has already been registered. ignoring.");
@@ -66,11 +66,11 @@ void TextureManager::registerTexture(Texture *texture)
void TextureManager::unregisterTexture(const wstring &name, Texture *texture)
{
AUTO_VAR(it, idToTextureMap.find(texture->getManagerId()));
if(it != idToTextureMap.end()) idToTextureMap.erase(it);
auto it = idToTextureMap.find(texture->getManagerId());
if(it != idToTextureMap.end()) idToTextureMap.erase(it);
AUTO_VAR(it2, stringToIDMap.find(name));
if(it2 != stringToIDMap.end()) stringToIDMap.erase(it2);
auto it2 = stringToIDMap.find(name);
if(it2 != stringToIDMap.end()) stringToIDMap.erase(it2);
}
Stitcher *TextureManager::createStitcher(const wstring &name)
@@ -110,7 +110,7 @@ vector<Texture *> *TextureManager::createTextures(const wstring &filename, bool
drive= wstr + L"\\Common\\res\\TitleUpdate\\";
}
else
#endif
#endif
{
drive = Minecraft::GetInstance()->skins->getDefault()->getPath(true);
}