1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add ModStorageAPI to client side modding (#5396)

mod storage is located into user_path / client / mod_storage
This commit is contained in:
Loïc Blot 2017-03-16 07:53:39 +01:00 committed by GitHub
parent 46276414ed
commit eb88e5dd4b
8 changed files with 68 additions and 11 deletions

View file

@ -65,6 +65,9 @@ public:
return testmodspec;
}
virtual const ModSpec* getModSpec(const std::string &modname) const { return NULL; }
virtual std::string getModStoragePath() const { return "."; }
virtual bool registerModStorage(ModMetadata *meta) { return true; }
virtual void unregisterModStorage(const std::string &name) {}
private:
IItemDefManager *m_itemdef;