mirror of
https://github.com/Mylloon/obs-replay-folders.git
synced 2024-10-06 22:41:11 +02:00
cleanup and O3
This commit is contained in:
parent
00503b1afd
commit
371a5bedf0
2 changed files with 1 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -2,7 +2,7 @@ CC = x86_64-w64-mingw32-gcc
|
|||
STRIP = strip -s
|
||||
RM = rm
|
||||
|
||||
CFLAGS = -shared
|
||||
CFLAGS = -shared -O3
|
||||
|
||||
EXES = detect_game
|
||||
EXT = .dll
|
||||
|
|
|
@ -38,9 +38,6 @@ __declspec(dllexport) int get_running_fullscreen_game_path(char *buffer,
|
|||
HWND hwnd = NULL;
|
||||
while ((hwnd = FindWindowEx(NULL, hwnd, NULL, NULL)) != NULL) {
|
||||
if (TestFullscreen(hwnd)) {
|
||||
TCHAR windowTitle[MAX_TITLE_LENGTH];
|
||||
GetWindowText(hwnd, windowTitle, MAX_TITLE_LENGTH);
|
||||
|
||||
DWORD processId;
|
||||
GetWindowThreadProcessId(hwnd, &processId);
|
||||
|
||||
|
|
Loading…
Reference in a new issue