diff --git a/Makefile b/Makefile index 822f4db..3c5938e 100644 --- a/Makefile +++ b/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 diff --git a/detect_game.c b/detect_game.c index a21f518..fd84efc 100644 --- a/detect_game.c +++ b/detect_game.c @@ -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);