1
0
镜像自地址 https://github.com/luanti-org/luanti.git 已同步 2026-01-09 18:55:36 +01:00

Deprecate .bmp format

这个提交包含在:
sfan5
2023-10-25 17:18:34 +02:00
父节点 2f16227302
当前提交 03ba9370b9
修改 2 个文件,包含 8 行新增1 行删除

查看文件

@@ -265,7 +265,7 @@ the clients (see [Translations]). Accepted characters for names are:
Accepted formats are:
images: .png, .jpg, .bmp, .tga
images: .png, .jpg, .tga, (deprecated:) .bmp
sounds: .ogg vorbis
models: .x, .b3d, .obj

查看文件

@@ -2557,6 +2557,13 @@ 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.c_str(), filedata.length());