1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Update maps sorting logic

This commit is contained in:
MichalZr6
2025-02-16 15:30:24 +01:00
parent ee5cddb52c
commit ea1c911e4d
2 changed files with 4 additions and 2 deletions

View File

@@ -48,6 +48,8 @@ void CMapInfo::mapInit(const std::string & fname)
originalFileURI = resource.getOriginalName();
fullFileURI = boost::filesystem::canonical(*CResourceHandler::get()->getResourceName(resource)).string();
mapHeader = mapService.loadMapHeader(resource);
lastWrite = boost::filesystem::last_write_time(*CResourceHandler::get()->getResourceName(resource));
date = TextOperations::getFormattedDateTimeLocal(lastWrite);
countPlayers();
}