2
« on: January 13, 2024, 12:34:35 am »
I'm trying to quickly see if texture loading for my project is working, but I'm having an odd issue. When I try to put in the file into texture.loadFromFile, I get the error file not found, but the file it's saying is not found is not the one I have for the string. For example if I put texture.loadFromFile("test.png"); I get the error "Failed to load image "". Reason: Unable to open file" Even stranger when I used "image.png" I got the error: "Failed to load image "É▒╔.image.png ╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠". Reason: Unable to open file" And the characters sometimes change when I run it again. Other random strings give similar results.
If anyone knows of a solution help would be greatly appreciated