MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / PrefetchManySounds

Method PrefetchManySounds

ogsr_engine/xrGame/Level.cpp:237–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237bool 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
257bool CLevel::PrefetchManySoundsLater(LPCSTR prefix)
258{

Callers

nothing calls this directly

Calls 1

existMethod · 0.80

Tested by

no test coverage detected