mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
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
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user