mirror of
https://github.com/solemnwarning/ipxwrapper
synced 2024-12-30 16:45:37 +01:00
Added icon for ipxrouter.
This commit is contained in:
parent
322b2fe97d
commit
d9684fd53b
5
Makefile
5
Makefile
@ -64,7 +64,7 @@ ipxconfig.exe: src/ipxconfig.cpp
|
||||
dpwsockx.dll: src/directplay.o src/log.o src/dpwsockx_stubs.o src/common.o
|
||||
$(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup -shared -o dpwsockx.dll src/directplay.o src/log.o src/common.o src/dpwsockx_stubs.o src/dpwsockx.def -lwsock32
|
||||
|
||||
ipxrouter.exe: src/router-exe.o src/router.o src/interface.o src/common.o src/log.o
|
||||
ipxrouter.exe: src/router-exe.o src/router.o src/interface.o src/common.o src/log.o src/ipxrouter-rc.o
|
||||
$(CC) $(CFLAGS) -static-libgcc -mwindows -o ipxrouter.exe $^ -lws2_32 -liphlpapi
|
||||
|
||||
src/ipxwrapper_stubs.s: src/ipxwrapper_stubs.txt
|
||||
@ -79,6 +79,9 @@ src/mswsock_stubs.s: src/mswsock_stubs.txt
|
||||
src/dpwsockx_stubs.s: src/dpwsockx_stubs.txt
|
||||
perl mkstubs.pl src/dpwsockx_stubs.txt src/dpwsockx_stubs.s 3
|
||||
|
||||
src/ipxrouter-rc.o: src/ipxrouter.rc
|
||||
windres src/ipxrouter.rc -O coff -o src/ipxrouter-rc.o
|
||||
|
||||
%.dll: src/stubdll.o src/%_stubs.o src/log.o src/common.o src/%.def
|
||||
$(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup -shared -o $@ $^
|
||||
|
||||
|
BIN
ipxrouter-16.png
Normal file
BIN
ipxrouter-16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 180 B |
BIN
ipxrouter-32.png
Normal file
BIN
ipxrouter-32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 263 B |
BIN
ipxrouter.ico
Normal file
BIN
ipxrouter.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
1
src/ipxrouter.rc
Normal file
1
src/ipxrouter.rc
Normal file
@ -0,0 +1 @@
|
||||
50 ICON "../ipxrouter.ico"
|
@ -25,8 +25,6 @@
|
||||
|
||||
struct reg_global global_conf;
|
||||
|
||||
static HMODULE netshell_dll = NULL;
|
||||
|
||||
#define APPWM_TRAY (WM_APP+1)
|
||||
#define MNU_EXIT 101
|
||||
|
||||
@ -142,11 +140,7 @@ static void init_ui() {
|
||||
die("CreateWindow: ", w32_error(GetLastError()));
|
||||
}
|
||||
|
||||
if(!(netshell_dll = LoadLibrary("netshell.dll"))) {
|
||||
die("Error loading netshell.dll: ", w32_error(GetLastError()));
|
||||
}
|
||||
|
||||
HICON icon = LoadIcon(netshell_dll, MAKEINTRESOURCE(162));
|
||||
HICON icon = (HICON)LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(50), IMAGE_ICON, 0, 0, LR_DEFAULTSIZE);
|
||||
if(!icon) {
|
||||
die("Error loading icon: ", w32_error(GetLastError()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user