fix windows build scripts, add windows opus support

This commit is contained in:
HappyDOGE
2022-07-28 14:27:56 +03:00
parent 90cd6e0e15
commit 3faf6a69ac
149 changed files with 396 additions and 170 deletions
+6 -6
View File
@@ -67,9 +67,9 @@ int __cdecl BlacklistedAtCompare(ListPanel *pPanel, const ListPanelItem &p1, con
if ( !pSvr1 && !pSvr2 )
return 0;
if ( pSvr1->m_ulTimeBlacklistedAt > pSvr2->m_ulTimeBlacklistedAt )
if ( pSvr1->m_ullTimeBlacklistedAt > pSvr2->m_ullTimeBlacklistedAt )
return -1;
if ( pSvr1->m_ulTimeBlacklistedAt < pSvr2->m_ulTimeBlacklistedAt )
if ( pSvr1->m_ullTimeBlacklistedAt < pSvr2->m_ullTimeBlacklistedAt )
return 1;
return 0;
@@ -148,19 +148,19 @@ bool CBlacklistedServers::AddServersFromFile( const char *pszFilename, bool bRes
{
const char *pszName = pData->GetString( "name" );
uint32 ulDate = pData->GetInt( "date" );
uint64 ullDate = pData->GetUint64( "date" );
if ( bResetTimes )
{
time_t today;
time( &today );
ulDate = today;
ullDate = (uint64)today;
}
const char *pszNetAddr = pData->GetString( "addr" );
if ( pszNetAddr && pszNetAddr[0] && pszName && pszName[0] )
{
blacklisted_server_t *blackServer = m_blackList.AddServer( pszName, pszNetAddr, ulDate );
blacklisted_server_t *blackServer = m_blackList.AddServer( pszName, pszNetAddr, ullDate );
UpdateBlacklistUI( blackServer );
}
@@ -256,7 +256,7 @@ void CBlacklistedServers::UpdateBlacklistUI( blacklisted_server_t *blackServer )
// construct a time string for blacklisted time
struct tm *now;
now = localtime( (time_t*)&blackServer->m_ulTimeBlacklistedAt );
now = localtime( (time_t*)&blackServer->m_ullTimeBlacklistedAt );
if ( now )
{
char buf[64];
+2 -1
View File
@@ -12,6 +12,7 @@
#endif
#include "ServerBrowser/blacklisted_server_manager.h"
#include <time.h>
//-----------------------------------------------------------------------------
// Purpose: Blacklisted servers list
@@ -61,7 +62,7 @@ private:
vgui::DHANDLE< vgui::FileOpenDialog > m_hImportDialog;
CBlacklistedServerManager m_blackList;
long m_blackListTimestamp;
time_t m_blackListTimestamp;
};
+3 -7
View File
@@ -16,7 +16,7 @@ def configure(conf):
conf.define('VERSION_SAFE_STEAM_API_INTERFACES',1)
conf.define('SERVERBROWSER_EXPORTS',1)
conf.define('GAME_SRC',1)
conf.define('_USE_32BIT_TIME_T',1)
# conf.define('_USE_32BIT_TIME_T',1)
def build(bld):
source = [
@@ -40,14 +40,10 @@ def build(bld):
'VACBannedConnRefusedDialog.cpp',
'QuickListPanel.cpp',
'../public/vgui_controls/vgui_controls.cpp',
'../common/ServerBrowser/blacklisted_server_manager.cpp'
'../common/ServerBrowser/blacklisted_server_manager.cpp',
'../public/tier0/memoverride.cpp'
]
if bld.env.DEST_OS == 'win32':
source += [
'../public/tier0/memoverride.cpp'
]
includes = [
'.',
'../public',