mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 18:13:46 +01:00
Readd TGA to the list of valid texture formats. (#11598)
This commit is contained in:
parent
719a12ecac
commit
6fedee16f0
@ -81,7 +81,7 @@ 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[] = { "png", "jpg", "bmp", NULL };
|
const char *extensions[] = { "png", "jpg", "bmp", "tga", NULL };
|
||||||
// If there is no extension, assume PNG
|
// If there is no extension, assume PNG
|
||||||
if (removeStringEnd(path, extensions).empty())
|
if (removeStringEnd(path, extensions).empty())
|
||||||
path = path + ".png";
|
path = path + ".png";
|
||||||
|
@ -2453,7 +2453,7 @@ bool Server::addMediaFile(const std::string &filename,
|
|||||||
}
|
}
|
||||||
// If name is not in a supported format, ignore it
|
// If name is not in a supported format, ignore it
|
||||||
const char *supported_ext[] = {
|
const char *supported_ext[] = {
|
||||||
".png", ".jpg", ".bmp",
|
".png", ".jpg", ".bmp", ".tga",
|
||||||
".ogg",
|
".ogg",
|
||||||
".x", ".b3d", ".obj",
|
".x", ".b3d", ".obj",
|
||||||
// Custom translation file format
|
// Custom translation file format
|
||||||
|
Loading…
Reference in New Issue
Block a user