diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2017-03-19 23:35:35 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2017-03-19 23:35:35 +0300 |
commit | 8d4d5f0437a2f0b0f8a61649736a90f907da3487 (patch) | |
tree | 209b86436558c6d9b70ac0ad4cdb7055ae99b4d5 /overlay | |
parent | 58c208c2c6f6ac711e7d3d009d666a2d7e5fa9b0 (diff) |
overlay: hook up new excludecheck-based overlay exclusion check.
This commit hooks up the 'excludecheck' module into the Windows overlay.
Diffstat (limited to 'overlay')
-rw-r--r-- | overlay/lib.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/overlay/lib.cpp b/overlay/lib.cpp index 7454b2b85..0b2151caa 100644 --- a/overlay/lib.cpp +++ b/overlay/lib.cpp @@ -4,6 +4,7 @@ // Mumble source tree or at <https://www.mumble.info/LICENSE>. #include "lib.h" +#include "excludecheck.h" #include "overlay_exe/overlay_exe.h" @@ -543,6 +544,14 @@ static bool dllmainProcAttach(char *procname) { } else { checkNoOverlayFile(dir); checkDebugOverlayFile(dir); + + if (bEnableOverlay) { + bEnableOverlay = ExcludeCheckIsOverlayEnabled(absExeName, exeName); + } + + if (!bEnableOverlay) { + return false; + } } OSVERSIONINFOEX ovi; |