mirror of
https://github.com/Mylloon/obs-replay-folders.git
synced 2025-01-15 12:34:33 +01:00
exclude windows apps
This commit is contained in:
parent
34812a49cc
commit
0f84fcfbcb
1 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
|||
|
||||
#define MAX_TITLE_LENGTH 256
|
||||
static const char prefix[] = "C:\\Windows\\";
|
||||
static const char windowsapps[] =
|
||||
"C:\\Program Files\\Common Files\\microsoft shared\\";
|
||||
static const char gameBarExe[] = "GameBar.exe";
|
||||
|
||||
BOOL TestFullscreen(HWND hwnd) {
|
||||
|
@ -66,6 +68,11 @@ __declspec(dllexport) int get_running_fullscreen_game_path(char *buffer,
|
|||
continue;
|
||||
}
|
||||
|
||||
result = strncmp(charPath, windowsapps, 47);
|
||||
if (result == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
result = strcmp(charPath + strlen(charPath) - 11, gameBarExe);
|
||||
if (result == 0) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue