mirror of
https://github.com/Mylloon/obs-replay-folders.git
synced 2024-11-09 17:57:01 +01:00
strip dll
This commit is contained in:
parent
898cba7a72
commit
34812a49cc
2 changed files with 3 additions and 15 deletions
4
Makefile
4
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)
|
||||
|
|
|
@ -1,20 +1,6 @@
|
|||
#include <windows.h>
|
||||
|
||||
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 <psapi.h>
|
||||
#include <stdlib.h>
|
||||
#include <tchar.h>
|
||||
|
||||
#define MAX_TITLE_LENGTH 256
|
||||
static const char prefix[] = "C:\\Windows\\";
|
||||
|
|
Loading…
Reference in a new issue