diff options
author | DS <vorunbekannt75@web.de> | 2021-02-23 19:39:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 19:39:15 +0100 |
commit | 4abe4b87b5902bff229505b83b9bddb9a8f759cd (patch) | |
tree | 7c90751b6c17fdc380a9c1f28db9cdbccd8978bb /src/server/mods.h | |
parent | 29681085b9762e8cf0e953014ca0e8d2890713ef (diff) | |
download | minetest-4abe4b87b5902bff229505b83b9bddb9a8f759cd.tar.gz minetest-4abe4b87b5902bff229505b83b9bddb9a8f759cd.tar.bz2 minetest-4abe4b87b5902bff229505b83b9bddb9a8f759cd.zip |
Allow overwriting media files of dependencies (#10752)
Diffstat (limited to 'src/server/mods.h')
-rw-r--r-- | src/server/mods.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/mods.h b/src/server/mods.h index 54774bd86..8954bbf72 100644 --- a/src/server/mods.h +++ b/src/server/mods.h @@ -42,5 +42,13 @@ public: void loadMods(ServerScripting *script); const ModSpec *getModSpec(const std::string &modname) const; void getModNames(std::vector<std::string> &modlist) const; + /** + * Recursively gets all paths of mod folders that can contain media files. + * + * Result is ordered in descending priority, ie. files from an earlier path + * should not be replaced by files from a latter one. + * + * @param paths result vector + */ void getModsMediaPaths(std::vector<std::string> &paths) const; }; |