From 0d6c83212ab62aeb6105475ff6239f63f409428c Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Tue, 17 Jul 2018 13:00:29 +0200 Subject: DC: Allow plugins to be grouped into subdirectories By letting the user select which group of plugins to load, an out of memory condition can be avoided while still allowing all plugins to be stored on the same disc. --- backends/platform/dc/dc.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'backends/platform/dc/dc.h') diff --git a/backends/platform/dc/dc.h b/backends/platform/dc/dc.h index 34e8014ed9..a3f7423eed 100644 --- a/backends/platform/dc/dc.h +++ b/backends/platform/dc/dc.h @@ -250,6 +250,11 @@ public: protected: Plugin* createPlugin(const Common::FSNode &node) const; bool isPluginFilename(const Common::FSNode &node) const; + void addCustomDirectories(Common::FSList &dirs) const; + public: + PluginList getPlugins(); + private: + const char *pluginCustomDirectory; #endif }; @@ -258,3 +263,6 @@ extern int handleInput(struct mapledev *pad, int &mouse_x, int &mouse_y, byte &shiftFlags, Interactive *inter = NULL); extern bool selectGame(char *&, char *&, Common::Language &, Common::Platform &, class Icon &); +#ifdef DYNAMIC_MODULES +extern bool selectPluginDir(Common::String &selection, const Common::FSNode &base); +#endif -- cgit v1.2.3