mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-22 03:51:23 +00:00
Add ability to change window dedicated server executable icon
This commit is contained in:
parent
317a17b426
commit
89da51f883
2 changed files with 14 additions and 1 deletions
|
@ -1330,6 +1330,11 @@ $(echo_cmd) "WINDRES $<"
|
|||
$(Q)$(WINDRES) -i $< -o $@
|
||||
endef
|
||||
|
||||
define DO_DED_WINDRES
|
||||
$(echo_cmd) "DED_WINDRES $<"
|
||||
$(Q)$(WINDRES) -DDEDICATED -i $< -o $@
|
||||
endef
|
||||
|
||||
|
||||
#############################################################################
|
||||
# MAIN TARGETS
|
||||
|
@ -2829,7 +2834,7 @@ $(B)/ded/%.o: $(SYSDIR)/%.m
|
|||
$(DO_DED_CC)
|
||||
|
||||
$(B)/ded/win_resource.o: $(SYSDIR)/win_resource.rc $(SYSDIR)/win_manifest.xml
|
||||
$(DO_WINDRES)
|
||||
$(DO_DED_WINDRES)
|
||||
|
||||
$(B)/ded/%.o: $(NDIR)/%.c
|
||||
$(DO_DED_CC)
|
||||
|
|
|
@ -53,11 +53,19 @@ END
|
|||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
#ifdef DEDICATED
|
||||
#ifndef __MINGW32__
|
||||
IDI_ICON1 ICON DISCARDABLE "../q3r_icon.ico"
|
||||
#else
|
||||
IDI_ICON1 ICON DISCARDABLE "misc/q3r_icon.ico"
|
||||
#endif
|
||||
#else
|
||||
#ifndef __MINGW32__
|
||||
IDI_ICON1 ICON DISCARDABLE "../quake3.ico"
|
||||
#else
|
||||
IDI_ICON1 ICON DISCARDABLE "misc/quake3.ico"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in a new issue