cleanup and O3

This commit is contained in:
Mylloon 2024-08-21 13:57:13 +02:00
parent 00503b1afd
commit 371a5bedf0
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 1 additions and 4 deletions

View file

@ -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

View file

@ -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);