forked from Mirrorlandia_minetest/minetest
Remove unsupported extensions from list in tile.cpp
This commit is contained in:
parent
80d12dbedb
commit
28c98f9fa5
@ -81,12 +81,8 @@ static bool replace_ext(std::string &path, const char *ext)
|
|||||||
std::string getImagePath(std::string path)
|
std::string getImagePath(std::string path)
|
||||||
{
|
{
|
||||||
// A NULL-ended list of possible image extensions
|
// A NULL-ended list of possible image extensions
|
||||||
const char *extensions[] = {
|
const char *extensions[] = { "png", "jpg", "bmp", NULL };
|
||||||
"png", "jpg", "bmp", "tga",
|
// If there is no extension, assume PNG
|
||||||
"pcx", "ppm", "psd", "wal", "rgb",
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
// If there is no extension, add one
|
|
||||||
if (removeStringEnd(path, extensions).empty())
|
if (removeStringEnd(path, extensions).empty())
|
||||||
path = path + ".png";
|
path = path + ".png";
|
||||||
// Check paths until something is found to exist
|
// Check paths until something is found to exist
|
||||||
|
Loading…
Reference in New Issue
Block a user