mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +00:00
Add APPBASENAME to Makefile.common, controlling the resulting binary's default .cfg file name and .log file name. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@6010 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
0c5d9f8cbe
commit
bc13f9dd39
4 changed files with 17 additions and 7 deletions
|
@ -676,7 +676,7 @@ ifneq (0,$(STANDALONE))
|
|||
COMPILERFLAGS+= -DEDUKE32_STANDALONE
|
||||
endif
|
||||
|
||||
COMPILERFLAGS+= -DAPPNAME=\"$(APPNAME)\"
|
||||
COMPILERFLAGS+= -DAPPNAME=\"$(APPNAME)\" -DAPPBASENAME=\"$(APPBASENAME)\"
|
||||
|
||||
# may be overridden
|
||||
EXESUFFIX=
|
||||
|
|
|
@ -47,11 +47,21 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#define APPNAME "EDuke32"
|
||||
#endif
|
||||
|
||||
#define HEAD2 APPNAME
|
||||
#ifndef APPBASENAME
|
||||
#define APPBASENAME "eduke32"
|
||||
#endif
|
||||
|
||||
#define VOLUMEALL (g_Shareware == 0)
|
||||
#define PLUTOPAK (g_scriptVersion >= 14)
|
||||
#define VOLUMEONE (g_Shareware == 1)
|
||||
#define HEAD2 APPNAME
|
||||
|
||||
#ifdef EDUKE32_STANDALONE
|
||||
#define VOLUMEALL (1)
|
||||
#define PLUTOPAK (1)
|
||||
#define VOLUMEONE (0)
|
||||
#else
|
||||
#define VOLUMEALL (g_Shareware == 0)
|
||||
#define PLUTOPAK (g_scriptVersion >= 14)
|
||||
#define VOLUMEONE (g_Shareware == 1)
|
||||
#endif
|
||||
|
||||
// increase by 3, because atomic GRP adds 1, and Shareware adds 2
|
||||
#ifdef LUNATIC
|
||||
|
|
|
@ -6092,7 +6092,7 @@ int app_main(int argc, char const * const * argv)
|
|||
}
|
||||
else
|
||||
#endif
|
||||
OSD_SetLogFile("eduke32.log");
|
||||
OSD_SetLogFile(APPBASENAME ".log");
|
||||
|
||||
OSD_SetFunctions(GAME_drawosdchar,
|
||||
GAME_drawosdstr,
|
||||
|
|
|
@ -43,7 +43,7 @@ extern "C" {
|
|||
//
|
||||
// Setup program defines
|
||||
//
|
||||
#define SETUPFILENAME "eduke32.cfg"
|
||||
#define SETUPFILENAME APPBASENAME ".cfg"
|
||||
|
||||
// Number of JOY buttons
|
||||
// KEEPINSYNC source/jmact/_control.h, build/src/sdlayer.c
|
||||
|
|
Loading…
Reference in a new issue