From 34812a49cc40b01d8ba1bb900dfd0ffaf382097e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 21 Aug 2024 12:32:27 +0200 Subject: [PATCH] strip dll --- Makefile | 4 +++- detect_game.c | 14 -------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 43b6843..822f4db 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ CC = x86_64-w64-mingw32-gcc +STRIP = strip -s RM = rm -CFLAGS = -shared -lpsapi -luser32 +CFLAGS = -shared EXES = detect_game EXT = .dll @@ -10,6 +11,7 @@ all: $(EXES) $(EXES): %: %.c $(DEPS) $(CC) $^ -o $@$(EXT) $(CFLAGS) + $(STRIP) $@$(EXT) %.o: %.c $(CC) -c $< -o $@ $(CFLAGS) diff --git a/detect_game.c b/detect_game.c index a43decf..8d252bc 100644 --- a/detect_game.c +++ b/detect_game.c @@ -1,20 +1,6 @@ #include -BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, - LPVOID lpReserved) { - switch (ul_reason_for_call) { - case DLL_PROCESS_ATTACH: - case DLL_THREAD_ATTACH: - case DLL_THREAD_DETACH: - case DLL_PROCESS_DETACH: - break; - } - return TRUE; -} - #include -#include -#include #define MAX_TITLE_LENGTH 256 static const char prefix[] = "C:\\Windows\\";