| 3064 | } |
| 3065 | |
| 3066 | void 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 | |
| 3076 | int CMenus::CPopupMapPickerContext::MapListFetchCallback(const CFsFileInfo *pInfo, int IsDir, int StorageType, void *pUser) |
| 3077 | { |
no test coverage detected