| 416 | } |
| 417 | |
| 418 | static void Music_AddFile(const cc_string* path, void* obj, int isDirectory) { |
| 419 | struct StringsBuffer* files = (struct StringsBuffer*)obj; |
| 420 | static const cc_string ogg = String_FromConst(".ogg"); |
| 421 | |
| 422 | if (isDirectory) { |
| 423 | Directory_Enum(path, obj, Music_AddFile); |
| 424 | } else if (String_CaselessEnds(path, &ogg)) { |
| 425 | StringsBuffer_Add(files, path); |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | static void Music_RunLoop(void) { |
| 430 | struct StringsBuffer files; |
nothing calls this directly
no test coverage detected