engine: replace few more Xash3D strings by XASH_ENGINE_NAME macro
This commit is contained in:
parent
ef75a4c28d
commit
c86c45503f
3 changed files with 4 additions and 4 deletions
|
@ -183,7 +183,7 @@ static qboolean FS_DetermineRootDirectory( char *out, size_t size )
|
||||||
#elif XASH_PSVITA
|
#elif XASH_PSVITA
|
||||||
if( PSVita_GetBasePath( out, size ))
|
if( PSVita_GetBasePath( out, size ))
|
||||||
return true;
|
return true;
|
||||||
Sys_Error( "couldn't find Xash3D data directory" );
|
Sys_Error( "couldn't find %s data directory", XASH_ENGINE_NAME );
|
||||||
return false;
|
return false;
|
||||||
#elif ( XASH_SDL == 2 ) && !XASH_NSWITCH // GetBasePath not impl'd in switch-sdl2
|
#elif ( XASH_SDL == 2 ) && !XASH_NSWITCH // GetBasePath not impl'd in switch-sdl2
|
||||||
#if XASH_APPLE
|
#if XASH_APPLE
|
||||||
|
|
|
@ -632,7 +632,7 @@ void ID_Init( void )
|
||||||
#elif XASH_WIN32
|
#elif XASH_WIN32
|
||||||
{
|
{
|
||||||
CHAR szBuf[MAX_PATH];
|
CHAR szBuf[MAX_PATH];
|
||||||
ID_GetKeyData( HKEY_CURRENT_USER, "Software\\Xash3D\\", "xash_id", szBuf, MAX_PATH );
|
ID_GetKeyData( HKEY_CURRENT_USER, "Software\\"XASH_ENGINE_NAME"\\", "xash_id", szBuf, MAX_PATH );
|
||||||
|
|
||||||
sscanf(szBuf, "%016"PRIX64, &id);
|
sscanf(szBuf, "%016"PRIX64, &id);
|
||||||
id ^= SYSTEM_XOR_MASK;
|
id ^= SYSTEM_XOR_MASK;
|
||||||
|
@ -686,7 +686,7 @@ void ID_Init( void )
|
||||||
{
|
{
|
||||||
CHAR Buf[MAX_PATH];
|
CHAR Buf[MAX_PATH];
|
||||||
sprintf( Buf, "%016"PRIX64, id^SYSTEM_XOR_MASK );
|
sprintf( Buf, "%016"PRIX64, id^SYSTEM_XOR_MASK );
|
||||||
ID_SetKeyData( HKEY_CURRENT_USER, "Software\\Xash3D\\", REG_SZ, "xash_id", Buf, Q_strlen(Buf) );
|
ID_SetKeyData( HKEY_CURRENT_USER, "Software\\"XASH_ENGINE_NAME"\\", REG_SZ, "xash_id", Buf, Q_strlen(Buf) );
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
|
|
|
@ -2279,7 +2279,7 @@ int GAME_EXPORT SV_GetSaveComment( const char *savename, char *comment )
|
||||||
|
|
||||||
if( tag == 0x0065 )
|
if( tag == 0x0065 )
|
||||||
{
|
{
|
||||||
Q_strncpy( comment, "<old version Xash3D unsupported>", MAX_STRING );
|
Q_strncpy( comment, "<old version "XASH_ENGINE_NAME" unsupported>", MAX_STRING );
|
||||||
FS_Close( f );
|
FS_Close( f );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue