Wago wrath

toc wrath and wotlkc
This commit is contained in:
jliddev
2022-07-15 08:25:04 -05:00
parent df521e1afb
commit 62667ebbf9
3 changed files with 6 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ export class WowUpFolderScanner {
}
private get tocFileRegex() {
return /^([^/]+)[\\/]\1([-|_](mainline|bcc|tbc|classic|vanilla))?\.toc$/i;
return /^([^/]+)[\\/]\1([-_](mainline|bcc|tbc|classic|vanilla|wrath|wotlkc))?\.toc$/i;
}
private get bindingsXmlRegex() {

View File

@@ -28,7 +28,7 @@ import { getWowClientGroup } from "../../common/warcraft";
import { HttpErrorResponse } from "@angular/common/http";
import { UiMessageService } from "../services/ui-message/ui-message.service";
declare type WagoGameVersion = "retail" | "classic" | "bc";
declare type WagoGameVersion = "retail" | "classic" | "bc" | "wrath";
declare type WagoStability = "stable" | "beta" | "alpha";
interface WagoFingerprintAddon {
@@ -677,6 +677,8 @@ export class WagoAddonProvider extends AddonProvider {
return "classic";
case WowClientGroup.Retail:
return "retail";
case WowClientGroup.WOTLK:
return "wrath";
default:
throw new Error(`[wago] Un-handled client type: ${clientType}`);
}

View File

@@ -119,7 +119,7 @@ export class TocService {
matchedToc = tocFileNames.find((tfn) => /.*[-_](bcc|tbc)\.toc$/gi.test(tfn)) || "";
break;
case WowClientType.ClassicBeta:
matchedToc = tocFileNames.find((tfn) => /.*[-_](wotlkc)\.toc$/gi.test(tfn)) || "";
matchedToc = tocFileNames.find((tfn) => /.*[-_](wrath|wotlkc)\.toc$/gi.test(tfn)) || "";
break;
default:
break;
@@ -127,7 +127,7 @@ export class TocService {
return (
matchedToc ||
tocFileNames.find((tfn) => /.*(?<![-_](classic|vanilla|bcc|tbc|mainline|wotlkc))\.toc$/gi.test(tfn)) ||
tocFileNames.find((tfn) => /.*(?<![-_](classic|vanilla|bcc|tbc|mainline|wrath|wotlkc))\.toc$/gi.test(tfn)) ||
""
);
}