aboutsummaryrefslogtreecommitdiff
path: root/src/client/renderingengine.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2021-04-28 10:22:13 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2021-05-03 19:49:19 +0200
commite34d28af9f4b779b7a137f0e4017e499266e1931 (patch)
tree211b2ab003594dbd334c5dd4370707362bd7bb81 /src/client/renderingengine.h
parentbc1888ff21d50eb21c8f4d381e5dcc8049f7e36c (diff)
downloadminetest-e34d28af9f4b779b7a137f0e4017e499266e1931.tar.xz
refacto: rendering engine singleton removal step 1 (filesystem)
Make the RenderingEngine filesystem member non accessible from everywhere This permits also to determine that some lua code has directly a logic to extract zip file. Move this logic inside client, it's not the lua stack role to perform a such complex operation Found also another irrlicht <1.8 compat code to remove
Diffstat (limited to 'src/client/renderingengine.h')
-rw-r--r--src/client/renderingengine.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/renderingengine.h b/src/client/renderingengine.h
index 34cc60630..5807421ef 100644
--- a/src/client/renderingengine.h
+++ b/src/client/renderingengine.h
@@ -59,10 +59,9 @@ public:
static RenderingEngine *get_instance() { return s_singleton; }
- static io::IFileSystem *get_filesystem()
+ io::IFileSystem *get_filesystem()
{
- sanity_check(s_singleton && s_singleton->m_device);
- return s_singleton->m_device->getFileSystem();
+ return m_device->getFileSystem();
}
static video::IVideoDriver *get_video_driver()