Skip to content

Commit

Permalink
make levelIdx extractor case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy committed Dec 10, 2022
1 parent fc3d5c0 commit 5c88b38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dlf/Scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Scene {
}

static pathToLevelIdx(path: string) {
return parseInt(path.replace('Graph\\Levels\\level', '').replace('\\', ''))
return parseInt(path.toLowerCase().replace('graph\\levels\\level', '').replace('\\', ''))
}

static levelIdxToPath(levelIdx: number) {
Expand Down
2 changes: 1 addition & 1 deletion src/fts/FtsHeader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class FtsHeader {
}

static pathToLevelIdx(path: string) {
return parseInt(path.replace('C:\\ARX\\Game\\Graph\\Levels\\level', '').replace('\\', ''))
return parseInt(path.toLowerCase().replace('c:\\arx\\game\\graph\\levels\\level', '').replace('\\', ''))
}

static levelIdxToPath(levelIdx: number) {
Expand Down

0 comments on commit 5c88b38

Please sign in to comment.