| 235 | } |
| 236 | |
| 237 | bool CLevel::PrefetchManySounds(LPCSTR prefix) |
| 238 | { |
| 239 | bool created = false; |
| 240 | string_path fn; |
| 241 | if (FS.exist(fn, "$game_sounds$", prefix, ".ogg")) |
| 242 | created = PrefetchSound(prefix) || created; |
| 243 | u32 i = 0; |
| 244 | while (true) |
| 245 | { |
| 246 | string256 name; |
| 247 | sprintf_s(name, "%s%d", prefix, i); |
| 248 | if (FS.exist(fn, "$game_sounds$", name, ".ogg")) |
| 249 | created = PrefetchSound(name) || created; |
| 250 | else if (i > 0) |
| 251 | break; |
| 252 | i++; |
| 253 | } |
| 254 | return created; |
| 255 | } |
| 256 | |
| 257 | bool CLevel::PrefetchManySoundsLater(LPCSTR prefix) |
| 258 | { |