Skip to content

Commit

Permalink
#5617 Revert "Remove plugin directory support"
Browse files Browse the repository at this point in the history
This reverts commit fc697d2.
  • Loading branch information
SymlessRemoved authored and Andrew Nelless committed Sep 29, 2016
1 parent 65d2c71 commit 702875d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/lib/arch/unix/ArchFileUnix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -141,3 +155,9 @@ ArchFileUnix::setProfileDirectory(const String& s)
{
m_profileDirectory = s;
}

void
ArchFileUnix::setPluginDirectory(const String& s)
{
m_pluginDirectory = s;
}
18 changes: 18 additions & 0 deletions src/lib/arch/win32/ArchFileWindows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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 702875d

Please sign in to comment.