| 443 | } |
| 444 | |
| 445 | static 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 | |
| 462 | static void LoadItemsModels( |
| 463 | const Vfs& vfs, |
no test coverage detected