Skip to content

Commit e62321a

Browse files
committed
Map tools to .mpr
1 parent 6c4c630 commit e62321a

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

tools/map-name-case-fix/service/map-name-case-fix.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class MapNameCaseFixService {
2525

2626
private async run(): Promise<void> {
2727
// scan MPMaps.ini file for eligible maps
28-
// compare keys found in MPMaps.ini to filenames for *.map and *.png files
28+
// compare keys found in MPMaps.ini to filenames for *.mpr and *.png files
2929
await this.loadMapDirectoryFilesAsync();
3030
const invalidMapPairings: MapKeyPairing[] = (await this.mpMapsFileService.getMapKeysAsync())
3131
.map(mapKey => this.getInvalidMapPairing(mapKey))

tools/mpmaps-updater/service/map-loader.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import * as util from 'util'
44
import { IniFile } from '../class';
55
import { extname, join } from 'path';
66

7-
const MAP_FILE_EXTENSIONS = ['.map'];
7+
const MAP_FILE_EXTENSIONS = ['.mpr'];
88

99
export class MapLoaderService {
1010

1111
public async getMapIniFilesAsync(): Promise<IniFile[]> {
12-
console.log('Reading all .map files');
12+
console.log('Reading all .mpr files');
1313
return await this.getMapFilesFromDirAsync(constants.paths.maps);
1414
}
1515

tools/mpmaps-updater/service/mpmaps-updater.service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ export class MpMapsUpdaterService {
3636
}
3737

3838
/**
39-
* This merges the map data from .map files and the MPMaps.ini file.
39+
* This merges the map data from .mpr files and the MPMaps.ini file.
4040
* @param mpMapsIniFile the MPMaps.ini file to merge
4141
* @param mapIniFiles the list of maps found on the system
4242
* @private
4343
*/
4444
private async mergeMapsKeys(mpMapsIniFile: IniFile, mapIniFiles: IniFile[]): Promise<void> {
45-
console.log('Merging MPMaps.ini file with .map files');
45+
console.log('Merging MPMaps.ini file with .mpr files');
4646
const addedMapFiles: IniFile[] = await this.addNewMapIniFiles(mpMapsIniFile, mapIniFiles);
4747
const removedMapKeys: string[] = await this.removeMissingMaps(mpMapsIniFile, mapIniFiles);
4848
await this.updateMultiMaps(mpMapsIniFile, addedMapFiles, removedMapKeys);
@@ -165,7 +165,7 @@ export class MpMapsUpdaterService {
165165
}
166166

167167
/**
168-
* If .map files are removed from the repo, we must also remove them from the MPMaps.ini file.
168+
* If .mpr files are removed from the repo, we must also remove them from the MPMaps.ini file.
169169
* @param {IniFile} mpMapsIniFile the file to remove maps from
170170
* @param {IniFile[]} mapIniFiles the list of maps found on the system
171171
* @return {string[]} missing map keys
@@ -189,7 +189,7 @@ export class MpMapsUpdaterService {
189189
}
190190

191191
/**
192-
* If .map files are removed from the repo, we must also remove them from the MPMaps.ini file.
192+
* If .mpr files are removed from the repo, we must also remove them from the MPMaps.ini file.
193193
* @param mpMapsIniFile the file to remove maps from
194194
* @param currentMapKeys the current maps in the MPMaps.ini file
195195
* @param missingMapKeys the maps that should be removed from the MPMaps.ini file
@@ -211,7 +211,7 @@ export class MpMapsUpdaterService {
211211
const updateExecIniFile = await this.getUpdateExecIniFile();
212212
const deleteFiles = updateExecIniFile[constants.updateExecSections.deleteFile] as string[];
213213
const keysToAdd = missingMapKeys.map(key => [
214-
`${key}.map`,
214+
`${key}.mpr`,
215215
`${key}.png`
216216
]).flat();
217217

0 commit comments

Comments
 (0)