Move APPNAME and APPBASENAME to common_game.h so we can use them for the data paths in common.cpp

git-svn-id: https://svn.eduke32.com/eduke32@6728 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-03-07 04:21:37 +00:00
parent 3b6bb3b7a3
commit 0e0de77439
3 changed files with 11 additions and 11 deletions

View file

@ -317,11 +317,11 @@ void G_ExtInit(void)
{
Bsnprintf(cwd,sizeof(cwd),"%s/"
#if defined(_WIN32)
"EDuke32 Settings"
APPNAME " Settings"
#elif defined(GEKKO)
"apps/eduke32"
"apps/" APPBASENAME
#else
".eduke32"
"." APPBASENAME
#endif
,homedir);
asperr = addsearchpath(cwd);

View file

@ -15,6 +15,14 @@ extern "C" {
extern int g_useCwd;
#ifndef APPNAME
#define APPNAME "EDuke32"
#endif
#ifndef APPBASENAME
#define APPBASENAME "eduke32"
#endif
#define GAMEFLAG_DUKE 0x00000001
#define GAMEFLAG_NAM 0x00000002
#define GAMEFLAG_NAPALM 0x00000004

View file

@ -43,14 +43,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "keyboard.h"
#include "fx_man.h"
#ifndef APPNAME
#define APPNAME "EDuke32"
#endif
#ifndef APPBASENAME
#define APPBASENAME "eduke32"
#endif
#define HEAD2 APPNAME
#ifdef EDUKE32_STANDALONE