mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00: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:
parent
bc1888ff21
commit
e34d28af9f
5 changed files with 84 additions and 86 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue