aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dc/dc.h
diff options
context:
space:
mode:
authorMarcus Comstedt2018-07-17 13:00:29 +0200
committerMarcus Comstedt2018-07-17 13:06:02 +0200
commit0d6c83212ab62aeb6105475ff6239f63f409428c (patch)
tree08aa10d176889da13c665ade121a58253fad5f3a /backends/platform/dc/dc.h
parentd7f4cc93823eddc47453111370d9506bd64ec07d (diff)
downloadscummvm-rg350-0d6c83212ab62aeb6105475ff6239f63f409428c.tar.gz
scummvm-rg350-0d6c83212ab62aeb6105475ff6239f63f409428c.tar.bz2
scummvm-rg350-0d6c83212ab62aeb6105475ff6239f63f409428c.zip
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.
Diffstat (limited to 'backends/platform/dc/dc.h')
-rw-r--r--backends/platform/dc/dc.h8
1 files changed, 8 insertions, 0 deletions
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