|
|
@ -205,7 +205,7 @@ class CVCRHelpers : public IVCRHelpers |
|
|
|
public: |
|
|
|
public: |
|
|
|
virtual void ErrorMessage( const char *pMsg ) |
|
|
|
virtual void ErrorMessage( const char *pMsg ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#if defined( WIN32 ) || defined( LINUX ) || defined(BSD) |
|
|
|
#if defined( WIN32 ) || defined( LINUX ) || defined(PLATFORM_BSD) |
|
|
|
NOVCR( ::MessageBox( NULL, pMsg, "VCR Error", MB_OK ) ); |
|
|
|
NOVCR( ::MessageBox( NULL, pMsg, "VCR Error", MB_OK ) ); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
@ -950,7 +950,7 @@ bool GrabSourceMutex() |
|
|
|
|
|
|
|
|
|
|
|
#ifdef ANDROID |
|
|
|
#ifdef ANDROID |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
#elif defined (LINUX) || defined(BSD) |
|
|
|
#elif defined (LINUX) || defined(PLATFORM_BSD) |
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Linux |
|
|
|
* Linux |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -1198,7 +1198,7 @@ DLL_EXPORT int LauncherMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR |
|
|
|
DLL_EXPORT int LauncherMain( int argc, char **argv ) |
|
|
|
DLL_EXPORT int LauncherMain( int argc, char **argv ) |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
{ |
|
|
|
{ |
|
|
|
#if (defined(LINUX) || defined(BSD)) && !defined ANDROID |
|
|
|
#if (defined(LINUX) || defined(PLATFORM_BSD)) && !defined ANDROID |
|
|
|
// Temporary fix to stop us from crashing in printf/sscanf functions that don't expect
|
|
|
|
// Temporary fix to stop us from crashing in printf/sscanf functions that don't expect
|
|
|
|
// localization to mess with your "." and "," float seperators. Mac OSX also sets LANG
|
|
|
|
// localization to mess with your "." and "," float seperators. Mac OSX also sets LANG
|
|
|
|
// to en_US.UTF-8 before starting up (in info.plist I believe).
|
|
|
|
// to en_US.UTF-8 before starting up (in info.plist I believe).
|
|
|
@ -1225,7 +1225,7 @@ DLL_EXPORT int LauncherMain( int argc, char **argv ) |
|
|
|
Msg("SDL version: %d.%d.%d rev: %s\n", (int)ver.major, (int)ver.minor, (int)ver.patch, SDL_GetRevision()); |
|
|
|
Msg("SDL version: %d.%d.%d rev: %s\n", (int)ver.major, (int)ver.minor, (int)ver.patch, SDL_GetRevision()); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if (defined LINUX || defined BSD) && defined USE_SDL && defined TOGLES && !defined ANDROID |
|
|
|
#if (defined LINUX || defined PLATFORM_BSD) && defined USE_SDL && defined TOGLES && !defined ANDROID |
|
|
|
SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1"); |
|
|
|
SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1"); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
@ -1553,7 +1553,7 @@ DLL_EXPORT int LauncherMain( int argc, char **argv ) |
|
|
|
RegCloseKey(hKey); |
|
|
|
RegCloseKey(hKey); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#elif defined( OSX ) || defined( LINUX ) || defined(BSD) |
|
|
|
#elif defined( OSX ) || defined( LINUX ) || defined(PLATFORM_BSD) |
|
|
|
struct stat st; |
|
|
|
struct stat st; |
|
|
|
if ( stat( RELAUNCH_FILE, &st ) == 0 ) |
|
|
|
if ( stat( RELAUNCH_FILE, &st ) == 0 ) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1570,7 +1570,7 @@ DLL_EXPORT int LauncherMain( int argc, char **argv ) |
|
|
|
} |
|
|
|
} |
|
|
|
szCmd[nChars] = 0; |
|
|
|
szCmd[nChars] = 0; |
|
|
|
char szOpenLine[ MAX_PATH ]; |
|
|
|
char szOpenLine[ MAX_PATH ]; |
|
|
|
#if defined( LINUX ) || defined(BSD) |
|
|
|
#if defined( LINUX ) || defined(PLATFORM_BSD) |
|
|
|
Q_snprintf( szOpenLine, sizeof(szOpenLine), "xdg-open \"%s\"", szCmd ); |
|
|
|
Q_snprintf( szOpenLine, sizeof(szOpenLine), "xdg-open \"%s\"", szCmd ); |
|
|
|
#else |
|
|
|
#else |
|
|
|
Q_snprintf( szOpenLine, sizeof(szOpenLine), "open \"%s\"", szCmd ); |
|
|
|
Q_snprintf( szOpenLine, sizeof(szOpenLine), "open \"%s\"", szCmd ); |
|
|
|