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:
Er2
2022-11-24 22:04:29 +03:00
committed by GitHub
parent 807eaae850
commit 53bd92f7a8
49 changed files with 221 additions and 178 deletions

View File

@@ -15,7 +15,7 @@
#include <Psapi.h>
#endif
#if defined( OSX )
#if defined( OSX ) || defined(BSD)
#include <sys/sysctl.h>
#endif
@@ -278,7 +278,7 @@ static void posix_signal_handler( int i )
#define DO_TRY if ( sigsetjmp( g_mark, 1 ) == 0 )
#define DO_CATCH else
#if defined( OSX )
#if defined( OSX ) || defined(BSD)
#define __sighandler_t sig_t
#endif
@@ -537,7 +537,7 @@ public:
FreeLibrary( hInst );
}
#elif defined( OSX )
#elif defined( OSX ) || defined(BSD)
static const struct
{
@@ -548,8 +548,13 @@ public:
#define _XTAG( _x ) { _x, #_x }
_XTAG( HW_PHYSMEM ),
_XTAG( HW_USERMEM ),
#ifdef BSD
_XTAG( HW_PHYSMEM ),
_XTAG( HW_NCPU ),
#else
_XTAG( HW_MEMSIZE ),
_XTAG( HW_AVAILCPU ),
#endif
#undef _XTAG
};