mirror of
https://github.com/Mylloon/obs-replay-folders.git
synced 2025-01-15 12:34:33 +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
|
CC = x86_64-w64-mingw32-gcc
|
||||||
|
STRIP = strip -s
|
||||||
RM = rm
|
RM = rm
|
||||||
|
|
||||||
CFLAGS = -shared -lpsapi -luser32
|
CFLAGS = -shared
|
||||||
|
|
||||||
EXES = detect_game
|
EXES = detect_game
|
||||||
EXT = .dll
|
EXT = .dll
|
||||||
|
@ -10,6 +11,7 @@ all: $(EXES)
|
||||||
|
|
||||||
$(EXES): %: %.c $(DEPS)
|
$(EXES): %: %.c $(DEPS)
|
||||||
$(CC) $^ -o $@$(EXT) $(CFLAGS)
|
$(CC) $^ -o $@$(EXT) $(CFLAGS)
|
||||||
|
$(STRIP) $@$(EXT)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -c $< -o $@ $(CFLAGS)
|
$(CC) -c $< -o $@ $(CFLAGS)
|
||||||
|
|
|
@ -1,20 +1,6 @@
|
||||||
#include <windows.h>
|
#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 <psapi.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
|
|
||||||
#define MAX_TITLE_LENGTH 256
|
#define MAX_TITLE_LENGTH 256
|
||||||
static const char prefix[] = "C:\\Windows\\";
|
static const char prefix[] = "C:\\Windows\\";
|
||||||
|
|
Loading…
Reference in a new issue