mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 14:16:50 +00:00
game: fix linux soundscapes (ValveSoftware/source-sdk-2013#448)
This commit is contained in:
parent
d8f5cdfd3c
commit
68483bd0f6
@ -62,7 +62,7 @@ void CSoundscapeSystem::AddSoundscapeFile( const char *filename )
|
||||
MEM_ALLOC_CREDIT();
|
||||
// Open the soundscape data file, and abort if we can't
|
||||
KeyValues *pKeyValuesData = new KeyValues( filename );
|
||||
if ( filesystem->LoadKeyValues( *pKeyValuesData, IFileSystem::TYPE_SOUNDSCAPE, filename, "GAME" ) )
|
||||
if ( pKeyValuesData->LoadFromFile( filesystem, filename, "GAME" ) )
|
||||
{
|
||||
// parse out all of the top level sections and save their names
|
||||
KeyValues *pKeys = pKeyValuesData;
|
||||
@ -137,7 +137,7 @@ bool CSoundscapeSystem::Init()
|
||||
}
|
||||
|
||||
KeyValues *manifest = new KeyValues( SOUNDSCAPE_MANIFEST_FILE );
|
||||
if ( filesystem->LoadKeyValues( *manifest, IFileSystem::TYPE_SOUNDSCAPE, SOUNDSCAPE_MANIFEST_FILE, "GAME" ) )
|
||||
if( manifest->LoadFromFile( filesystem, SOUNDSCAPE_MANIFEST_FILE, "GAME" ) )
|
||||
{
|
||||
for ( KeyValues *sub = manifest->GetFirstSubKey(); sub != NULL; sub = sub->GetNextKey() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user