aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2021-04-28 09:55:51 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2021-05-03 19:49:19 +0200
commitbc1888ff21d50eb21c8f4d381e5dcc8049f7e36c (patch)
tree47896c195168402960fd7de88a00c601cadf4912 /src/client
parent83a7b48bb1312cf9851706c2b6adc7877556e8d5 (diff)
downloadminetest-bc1888ff21d50eb21c8f4d381e5dcc8049f7e36c.tar.gz
minetest-bc1888ff21d50eb21c8f4d381e5dcc8049f7e36c.tar.bz2
minetest-bc1888ff21d50eb21c8f4d381e5dcc8049f7e36c.zip
fix: drop old irrlicht <1.8 compat on Client::loadMedia
Diffstat (limited to 'src/client')
-rw-r--r--src/client/client.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp
index 0486bc0a9..5db0b8f5d 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -663,15 +663,8 @@ bool Client::loadMedia(const std::string &data, const std::string &filename,
io::IFileSystem *irrfs = RenderingEngine::get_filesystem();
video::IVideoDriver *vdrv = RenderingEngine::get_video_driver();
-#if IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR > 8
io::IReadFile *rfile = irrfs->createMemoryReadFile(
data.c_str(), data.size(), "_tempreadfile");
-#else
- // Silly irrlicht's const-incorrectness
- Buffer<char> data_rw(data.c_str(), data.size());
- io::IReadFile *rfile = irrfs->createMemoryReadFile(
- *data_rw, data_rw.getSize(), "_tempreadfile");
-#endif
FATAL_ERROR_IF(!rfile, "Could not create irrlicht memory file.");