Thanks, it's, c++ but here is the code anyways. I also thought it has something to do with the paths, it's not an immediate issue as it runs in vs.
void TextureManager::loadTextures()
{
//every sub folder
for (unsigned int i = 0; i < subfolders.size(); i++)
{
std::vector<std::string> files = misc::getFileNames(ROOT_FOLDER + subfolders[i]);
//every file within folder
for (unsigned int j = 0; j < files.size(); j++)
{
//create texture object
if (validFileType(files[j]))
{
Texture* texture = new Texture;
sf::Texture raw_texture;
//load and set name
raw_texture.loadFromFile(ROOT_FOLDER + subfolders[i] + '/' + files[j]);
texture->texture = raw_texture;
texture->name = files[j];
textureList.push_back(texture);
}
}
}
}