mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
fix windows build scripts, add windows opus support
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "snd_dev_wave.h"
|
||||
#include "tier2/tier2.h"
|
||||
|
||||
#include <time.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// External interfaces
|
||||
@@ -65,7 +66,7 @@ private:
|
||||
{
|
||||
char filename[ 512 ];
|
||||
CAudioSource *source;
|
||||
long filetime;
|
||||
time_t filetime;
|
||||
};
|
||||
|
||||
IAudioDevice *m_pAudioDevice;
|
||||
@@ -168,7 +169,7 @@ CAudioSource *CSoundSystem::FindOrAddSound( const char *filename )
|
||||
Assert( s );
|
||||
if ( !stricmp( s->filename, filename ) )
|
||||
{
|
||||
long filetime = g_pFullFileSystem->GetFileTime( filename );
|
||||
time_t filetime = g_pFullFileSystem->GetFileTime( filename );
|
||||
if ( filetime != s->filetime )
|
||||
{
|
||||
Msg( "Reloading sound %s\n", filename );
|
||||
|
||||
Reference in New Issue
Block a user