0
0
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:
Benedikt Galbavy 2024-01-24 09:54:20 +01:00
parent d649a650a3
commit 4ae462136e
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ SDL_Texture* TextureManager::loadTexture(const char* fileName)
auto texture = IMG_LoadTexture(Game::renderer, fileName); auto texture = IMG_LoadTexture(Game::renderer, fileName);
if (texture == NULL) throw std::runtime_error(std::string("Couldn't load texture '") + fileName + "'"); if (texture == NULL) throw std::runtime_error(std::string("Couldn't load texture '") + fileName + "'");
this->texture_cache.emplace(fileName, texture); this->texture_cache.emplace(fileName, texture);
printf("Loaded texture at '%s'\n", fileName);
return texture; return texture;
} }

View File

@ -17,7 +17,7 @@ TileComponent::TileComponent(int x, int y, int w, int h, int id)
return; return;
} }
bool test = it == textureDict.textureDictionary.end(); 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(); this->path = it->second.data();
} }