1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Load client mods into memory before execution.

Preperation for server-sent CSM which will eventually need this.
This commit is contained in:
sfan5 2019-11-08 20:01:47 +01:00
parent 5ab546f99b
commit 82a2e02323
4 changed files with 46 additions and 24 deletions

View file

@ -576,8 +576,6 @@ private:
// Storage for mesh data for creating multiple instances of the same mesh
StringMap m_mesh_data;
StringMap m_mod_files;
// own state
LocalClientState m_state;
@ -588,11 +586,13 @@ private:
IntervalLimiter m_localdb_save_interval;
u16 m_cache_save_interval;
// Client modding
ClientScripting *m_script = nullptr;
bool m_modding_enabled;
std::unordered_map<std::string, ModMetadata *> m_mod_storages;
float m_mod_storage_save_timer = 10.0f;
std::vector<ModSpec> m_mods;
StringMap m_mod_vfs;
bool m_shutdown = false;