Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/maps/MapFilters.js
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | for (let filename of listFiles(mapTypePath, g_MapTypes.Suffix[index], false)) | ||||
{ | { | ||||
Engine.ProfileStop(); | Engine.ProfileStop(); | ||||
return true; | return true; | ||||
} | } | ||||
maps.push({ | maps.push({ | ||||
"file": mapPath, | "file": mapPath, | ||||
"name": translate(mapData.settings.Name), | "name": translate(mapData.settings.Name), | ||||
"description": translate(mapData.settings.Description) | "description": translate(mapData.settings.Description), | ||||
// For convenience when filtering, store which type/filter tuple returned this map. | |||||
"mapType": mapTypeName, | |||||
"filter": filterName | |||||
}); | }); | ||||
} | } | ||||
} | } | ||||
Engine.ProfileStop(); | Engine.ProfileStop(); | ||||
return existence ? false : maps.sort((a, b) => a.name.localeCompare(b.name)); | return existence ? false : maps.sort((a, b) => a.name.localeCompare(b.name)); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator