MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / LoadSoundsDescription

Function LoadSoundsDescription

PanzerChasm/game_resources.cpp:445–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445static void LoadSoundsDescription(
446 const Vfs::FileContent& inf_file,
447 GameResources& game_resources )
448{
449 for( GameResources::SoundDescription& sound : game_resources.sounds )
450 {
451 sound.file_name[0]= '\0';
452 sound.volume= 0u;
453 }
454
455 const char* const start=
456 std::strstr( reinterpret_cast<const char*>(inf_file.data()), "[SOUNDS]" );
457 const char* const end= std::strstr( start, "[SOUNDS_END]" );
458
459 LoadSoundsDescriptionFromFileData( start, end, 0u, game_resources.sounds );
460}
461
462static void LoadItemsModels(
463 const Vfs& vfs,

Callers 1

LoadGameResourcesFunction · 0.85

Calls 1

Tested by

no test coverage detected