MCPcopy Create free account
hub / github.com/ddnet/ddnet / MapListPopulate

Method MapListPopulate

src/game/client/components/menus_settings.cpp:3066–3074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3064}
3065
3066void CMenus::CPopupMapPickerContext::MapListPopulate()
3067{
3068 m_vMaps.clear();
3069 char aTemp[IO_MAX_PATH_LENGTH];
3070 str_format(aTemp, sizeof(aTemp), "maps/%s", m_aCurrentMapFolder);
3071 m_pMenus->Storage()->ListDirectoryInfo(IStorage::TYPE_ALL, aTemp, MapListFetchCallback, this);
3072 std::stable_sort(m_vMaps.begin(), m_vMaps.end(), CompareFilenameAscending);
3073 m_Selection = -1;
3074}
3075
3076int CMenus::CPopupMapPickerContext::MapListFetchCallback(const CFsFileInfo *pInfo, int IsDir, int StorageType, void *pUser)
3077{

Callers 2

RenderSettingsDDNetMethod · 0.80
PopupMapPickerMethod · 0.80

Calls 5

str_formatFunction · 0.85
ListDirectoryInfoMethod · 0.80
beginMethod · 0.80
endMethod · 0.80
StorageMethod · 0.45

Tested by

no test coverage detected