Skip to content

Commit

Permalink
[7.3.1]Plugin::IsGhosted() - return false if both normal and ghost ex…
Browse files Browse the repository at this point in the history
…ist:

Closes #8.
  • Loading branch information
Utumno committed Jun 27, 2015
1 parent f14720a commit 4aa6aa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/libloadorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ using namespace liblo;

const unsigned int LIBLO_VERSION_MAJOR = 7;
const unsigned int LIBLO_VERSION_MINOR = 3;
const unsigned int LIBLO_VERSION_PATCH = 0;
const unsigned int LIBLO_VERSION_PATCH = 1;

/* Returns whether this version of libloadorder is compatible with the given
version of libloadorder. */
Expand Down
4 changes: 3 additions & 1 deletion src/backend/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ namespace liblo {
}

bool Plugin::IsGhosted(const _lo_game_handle_int& parentGame) const {
return (fs::exists(parentGame.PluginsFolder() / fs::path(name + ".ghost")));
bool isGhost = !fs::exists(parentGame.PluginsFolder() / name) &&
fs::exists(parentGame.PluginsFolder() / fs::path(name + ".ghost"));
return isGhost;
}

bool Plugin::Exists(const _lo_game_handle_int& parentGame) const {
Expand Down

0 comments on commit 4aa6aa8

Please sign in to comment.