MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / LoadLevelScreen_LoadEntries

Function LoadLevelScreen_LoadEntries

src/Menus.c:1840–1844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1838}
1839
1840static void LoadLevelScreen_LoadEntries(struct ListScreen* s) {
1841 static const cc_string path = String_FromConst("maps");
1842 Directory_Enum(&path, &s->entries, LoadLevelScreen_FilterFiles);
1843 StringsBuffer_Sort(&s->entries);
1844}
1845
1846static void LoadLevelScreen_UploadCallback(const cc_string* path) { Map_LoadFrom(path); }
1847static void LoadLevelScreen_ActionFunc(void* s, void* w) {

Callers

nothing calls this directly

Calls 2

StringsBuffer_SortFunction · 0.85
Directory_EnumFunction · 0.70

Tested by

no test coverage detected