Permalink
Browse files
#5617 Revert "Remove plugin directory support"
- Loading branch information...
Showing
with
38 additions
and
0 deletions.
-
+20
−0
src/lib/arch/unix/ArchFileUnix.cpp
-
+18
−0
src/lib/arch/win32/ArchFileWindows.cpp
|
|
@@ -104,6 +104,20 @@ ArchFileUnix::getLogDirectory() |
|
|
return "/var/log";
|
|
|
}
|
|
|
|
|
|
+std::string
|
|
|
+ArchFileUnix::getPluginDirectory()
|
|
|
+{
|
|
|
+ if (!m_pluginDirectory.empty()) {
|
|
|
+ return m_pluginDirectory;
|
|
|
+ }
|
|
|
+
|
|
|
+#if WINAPI_XWINDOWS
|
|
|
+ return getProfileDirectory().append("/plugins");
|
|
|
+#else
|
|
|
+ return getProfileDirectory().append("/Plugins");
|
|
|
+#endif
|
|
|
+}
|
|
|
+
|
|
|
std::string
|
|
|
ArchFileUnix::getProfileDirectory()
|
|
|
{
|
|
|
@@ -141,3 +155,9 @@ ArchFileUnix::setProfileDirectory(const String& s) |
|
|
{
|
|
|
m_profileDirectory = s;
|
|
|
}
|
|
|
+
|
|
|
+void
|
|
|
+ArchFileUnix::setPluginDirectory(const String& s)
|
|
|
+{
|
|
|
+ m_pluginDirectory = s;
|
|
|
+}
|
|
|
@@ -139,6 +139,18 @@ ArchFileWindows::getLogDirectory() |
|
|
return getInstalledDirectory();
|
|
|
}
|
|
|
|
|
|
+std::string
|
|
|
+ArchFileWindows::getPluginDirectory()
|
|
|
+{
|
|
|
+ if (!m_pluginDirectory.empty()) {
|
|
|
+ return m_pluginDirectory;
|
|
|
+ }
|
|
|
+
|
|
|
+ std::string dir = getProfileDirectory();
|
|
|
+ dir.append("\\Plugins");
|
|
|
+ return dir;
|
|
|
+}
|
|
|
+
|
|
|
std::string
|
|
|
ArchFileWindows::getProfileDirectory()
|
|
|
{
|
|
|
@@ -183,3 +195,9 @@ ArchFileWindows::setProfileDirectory(const String& s) |
|
|
{
|
|
|
m_profileDirectory = s;
|
|
|
}
|
|
|
+
|
|
|
+void
|
|
|
+ArchFileWindows::setPluginDirectory(const String& s)
|
|
|
+{
|
|
|
+ m_pluginDirectory = s;
|
|
|
+}
|
0 comments on commit
b1a991e