Skip to content

Commit

Permalink
Revert hash checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ungeziefi committed Jun 5, 2024
1 parent 2ce34e2 commit 7b47a17
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/executableslist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,30 +135,12 @@ ExecutablesList::getPluginExecutables(MOBase::IPluginGame const* game) const
Q_ASSERT(game != nullptr);

std::vector<Executable> v;
uint64_t executableHash;

for (const ExecutableInfo& info : game->executables()) {
if (!info.isValid()) {
continue;
}

// Hide NVSE from executable list by default if it's patched
if (info.title() == "Tale of Two Wastelands" || info.title() == "New Vegas") {
executableHash = getFileHash(info.binary().absoluteFilePath().toStdWString());
v.push_back({info, Executable::UseApplicationIcon});
}

if (info.title() == "NVSE") {
const std::unordered_set<uint64_t> patchedExecutableHashes = {
7625907240992332651, // patched gog
7658157216307907036, // patched epic
12047903279041789040, // patched steam
};
if (patchedExecutableHashes.count(executableHash) > 0) {
v.push_back({info, Executable::UseApplicationIcon | Executable::Hide});
} else
v.push_back({info, Executable::UseApplicationIcon});
}
v.push_back({info, Executable::UseApplicationIcon});
}

Expand Down

0 comments on commit 7b47a17

Please sign in to comment.