mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
BSD: Add support (#140)
* BSD: Add support * BSD: other fixes There is still a bug when vgui haven't got text, maybe because of resources. Also there is bug where when trying to start new game caption names shows wrong. * BSD: Debugging * BSD: modify preprocessor and fix windows * BSD: Remove debugging and fix labels in gameui * BSD: Remove disabling some DX9 commands * BSD: Remove -g flag
This commit is contained in:
@@ -58,14 +58,14 @@ DEFINE_ENUM_BITWISE_OPERATORS( EPlatform_t );
|
||||
const EPlatform_t thisPlatform = PLATFORM_XBOX_360;
|
||||
#elif defined( _PS3 )
|
||||
const EPlatform_t thisPlatform = PLATFORM_PS3;
|
||||
#elif defined ( _LINUX )
|
||||
#elif defined ( _LINUX ) || defined(BSD)
|
||||
const EPlatform_t thisPlatform = PLATFORM_LINUX;
|
||||
#else
|
||||
#error "UNABLE TO DETERMINE PLATFORM"
|
||||
#endif
|
||||
|
||||
|
||||
#if defined( OSX ) || defined( LINUX )
|
||||
#if defined( OSX ) || defined( LINUX ) || defined(BSD)
|
||||
ILauncherMgr *g_pLauncherMgr = NULL;
|
||||
#endif
|
||||
|
||||
@@ -1382,7 +1382,7 @@ bool CVideoCommonServices::ProcessFullScreenInput( bool &bAbortEvent, bool &bPau
|
||||
bool bEscPressed = ( m_bScanEsc ) ? CGEventSourceKeyState( kCGEventSourceStateCombinedSessionState, kVK_Escape ) : false;
|
||||
bool bReturnPressed = ( m_bScanReturn ) ? CGEventSourceKeyState( kCGEventSourceStateCombinedSessionState, kVK_Return ) : false;
|
||||
bool bSpacePressed = ( m_bScanSpace ) ? CGEventSourceKeyState( kCGEventSourceStateCombinedSessionState, kVK_Space ) : false;
|
||||
#elif defined(LINUX)
|
||||
#elif defined(LINUX) || defined(BSD)
|
||||
g_pLauncherMgr->PumpWindowsMessageLoop();
|
||||
|
||||
// Escape, return, or space stops or pauses the playback
|
||||
|
||||
Reference in New Issue
Block a user