mirror of
https://github.com/WowUp/WowUp.git
synced 2026-04-22 15:00:38 -04:00
Wago wrath
toc wrath and wotlkc
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
|
||||
@@ -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) => /.*(?<)\.toc$/gi.test(tfn)) ||
|
||||
tocFileNames.find((tfn) => /.*(?<)\.toc$/gi.test(tfn)) ||
|
||||
""
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user