mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Remove BMP image support (#15434)
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
This commit is contained in:
@@ -2521,7 +2521,7 @@ bool Server::addMediaFile(const std::string &filename,
|
||||
}
|
||||
// If name is not in a supported format, ignore it
|
||||
const char *supported_ext[] = {
|
||||
".png", ".jpg", ".bmp", ".tga",
|
||||
".png", ".jpg", ".tga",
|
||||
".ogg",
|
||||
".x", ".b3d", ".obj", ".gltf", ".glb",
|
||||
// Translation file formats
|
||||
@@ -2547,13 +2547,6 @@ bool Server::addMediaFile(const std::string &filename,
|
||||
return false;
|
||||
}
|
||||
|
||||
const char *deprecated_ext[] = { ".bmp", nullptr };
|
||||
if (!removeStringEnd(filename, deprecated_ext).empty())
|
||||
{
|
||||
warningstream << "Media file \"" << filename << "\" is using a"
|
||||
" deprecated format and will stop working in the future." << std::endl;
|
||||
}
|
||||
|
||||
SHA1 sha1;
|
||||
sha1.addBytes(filedata);
|
||||
|
||||
|
Reference in New Issue
Block a user