forked from Mirrorlandia_minetest/minetest
Deprecate .bmp format
This commit is contained in:
parent
2f16227302
commit
03ba9370b9
@ -265,7 +265,7 @@ the clients (see [Translations]). Accepted characters for names are:
|
|||||||
|
|
||||||
Accepted formats are:
|
Accepted formats are:
|
||||||
|
|
||||||
images: .png, .jpg, .bmp, .tga
|
images: .png, .jpg, .tga, (deprecated:) .bmp
|
||||||
sounds: .ogg vorbis
|
sounds: .ogg vorbis
|
||||||
models: .x, .b3d, .obj
|
models: .x, .b3d, .obj
|
||||||
|
|
||||||
|
@ -2557,6 +2557,13 @@ bool Server::addMediaFile(const std::string &filename,
|
|||||||
return false;
|
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 sha1;
|
||||||
sha1.addBytes(filedata.c_str(), filedata.length());
|
sha1.addBytes(filedata.c_str(), filedata.length());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user