| 51 | } |
| 52 | |
| 53 | static bool LoadBasesetSound(SoundEntry &sound, bool new_format, SoundID sound_id) |
| 54 | { |
| 55 | sound.file->SeekTo(sound.file_offset, SEEK_SET); |
| 56 | |
| 57 | /* Read name of sound for diagnostics. */ |
| 58 | size_t name_len = sound.file->ReadByte(); |
| 59 | std::string name(name_len, '\0'); |
| 60 | sound.file->ReadBlock(name.data(), name_len); |
| 61 | |
| 62 | return LoadSoundData(sound, new_format, sound_id, StrMakeValid(name)); |
| 63 | } |
| 64 | |
| 65 | bool LoadSound(SoundEntry &sound, SoundID sound_id) |
| 66 | { |
no test coverage detected