mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 13:43:41 +00:00
Improved console output
This commit is contained in:
parent
d649a650a3
commit
4ae462136e
@ -13,6 +13,7 @@ SDL_Texture* TextureManager::loadTexture(const char* fileName)
|
||||
auto texture = IMG_LoadTexture(Game::renderer, fileName);
|
||||
if (texture == NULL) throw std::runtime_error(std::string("Couldn't load texture '") + fileName + "'");
|
||||
this->texture_cache.emplace(fileName, texture);
|
||||
printf("Loaded texture at '%s'\n", fileName);
|
||||
return texture;
|
||||
}
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ TileComponent::TileComponent(int x, int y, int w, int h, int id)
|
||||
return;
|
||||
}
|
||||
bool test = it == textureDict.textureDictionary.end();
|
||||
std::cout << it->second.data() << std::endl;
|
||||
// std::cout << it->second.data() << std::endl;
|
||||
this->path = it->second.data();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user