Skip to content

Commit

Permalink
game: fix linux soundscapes (ValveSoftware/source-sdk-2013#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanyaSho committed Aug 16, 2022
1 parent 0152f0e commit 0ac3a16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game/server/soundscape_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() )
{
Expand Down

0 comments on commit 0ac3a16

Please sign in to comment.