diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-03-16 07:53:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-16 07:53:39 +0100 |
commit | eb88e5dd4b181a90b382c036cf6c4f42e63e8cc2 (patch) | |
tree | 2ba995e0a2f15c0bc50212169f0b5af8addd3f86 /src/unittest | |
parent | 46276414ed51d61dc29879ac85e861dc770d90da (diff) | |
download | minetest-eb88e5dd4b181a90b382c036cf6c4f42e63e8cc2.tar.gz minetest-eb88e5dd4b181a90b382c036cf6c4f42e63e8cc2.tar.bz2 minetest-eb88e5dd4b181a90b382c036cf6c4f42e63e8cc2.zip |
Add ModStorageAPI to client side modding (#5396)
mod storage is located into user_path / client / mod_storage
Diffstat (limited to 'src/unittest')
-rw-r--r-- | src/unittest/test.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unittest/test.cpp b/src/unittest/test.cpp index 9beb0afa6..9d223b82d 100644 --- a/src/unittest/test.cpp +++ b/src/unittest/test.cpp @@ -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; |