mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 03:23:45 +01:00
Remove unsupported media formats from client.cpp
This commit is contained in:
parent
6a328197a5
commit
5b6bc8a12b
@ -770,7 +770,6 @@ bool Client::loadMedia(const std::string &data, const std::string &filename,
|
|||||||
|
|
||||||
const char *image_ext[] = {
|
const char *image_ext[] = {
|
||||||
".png", ".jpg", ".bmp", ".tga",
|
".png", ".jpg", ".bmp", ".tga",
|
||||||
".pcx", ".ppm", ".psd", ".wal", ".rgb",
|
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
name = removeStringEnd(filename, image_ext);
|
name = removeStringEnd(filename, image_ext);
|
||||||
@ -818,7 +817,7 @@ bool Client::loadMedia(const std::string &data, const std::string &filename,
|
|||||||
}
|
}
|
||||||
|
|
||||||
const char *model_ext[] = {
|
const char *model_ext[] = {
|
||||||
".x", ".b3d", ".md2", ".obj",
|
".x", ".b3d", ".obj",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
name = removeStringEnd(filename, model_ext);
|
name = removeStringEnd(filename, model_ext);
|
||||||
|
Loading…
Reference in New Issue
Block a user