From db194332a29b2584ce562d1085b62be0c91eb426 Mon Sep 17 00:00:00 2001 From: Phileas <55714518+phileas0408@users.noreply.github.com> Date: Sat, 23 Nov 2024 12:15:21 +0100 Subject: [PATCH] Enable fer imports for second rootage final datecode (#1210) * Add second rootage datecode * Update parser.ts for rootage array --- server/src/lib/constants/ea3id.ts | 2 +- server/src/lib/score-import/import-types/ir/fervidex/parser.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/lib/constants/ea3id.ts b/server/src/lib/constants/ea3id.ts index a9a552736..2cc8d8b8e 100644 --- a/server/src/lib/constants/ea3id.ts +++ b/server/src/lib/constants/ea3id.ts @@ -9,7 +9,7 @@ export const REV_OMNIMIX = "X"; export const REV_NORMAL = "A"; export const EXT_CANNON_BALLERS = "2018091900"; -export const EXT_ROOTAGE = "2019090200"; +export const EXT_ROOTAGE = ["2019090200", "2019100700"]; export const EXT_HEROIC_VERSE = "2020092900"; export const EXT_BISTROVER = "2021091500"; export const EXT_CASTHOUR = "2022082400"; diff --git a/server/src/lib/score-import/import-types/ir/fervidex/parser.ts b/server/src/lib/score-import/import-types/ir/fervidex/parser.ts index 8a45266bb..c07e3890b 100644 --- a/server/src/lib/score-import/import-types/ir/fervidex/parser.ts +++ b/server/src/lib/score-import/import-types/ir/fervidex/parser.ts @@ -108,7 +108,7 @@ export function SoftwareIDToVersion( if (data.rev === REV_NORMAL) { return "25"; } - } else if (data.ext === EXT_ROOTAGE) { + } else if (EXT_ROOTAGE.includes(data.ext)) { if (data.rev === REV_OMNIMIX) { return "26-omni"; } else if (data.rev === REV_NORMAL) {