From 371a5bedf091a1a1ffaf4cfe772db85500938b33 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 21 Aug 2024 13:57:13 +0200 Subject: [PATCH] cleanup and O3 --- Makefile | 2 +- detect_game.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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);