From ffdbfef2aaf9e7efad79d17a5cdcd6630da870c3 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Tue, 22 Oct 2024 15:01:41 +0800 Subject: [PATCH] Again fix the source data repo URL. --- .../Components/SupportedGame.swift | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Sources/GachaMetaGeneratorModule/Components/SupportedGame.swift b/Sources/GachaMetaGeneratorModule/Components/SupportedGame.swift index 4b77aff..055aae3 100644 --- a/Sources/GachaMetaGeneratorModule/Components/SupportedGame.swift +++ b/Sources/GachaMetaGeneratorModule/Components/SupportedGame.swift @@ -176,11 +176,7 @@ extension GachaMetaGenerator.SupportedGame { /// Only used for dealing with Dimbreath's repos. func getLangDataURL(for lang: GachaMetaGenerator.GachaDictLang) -> URL { - var urlStr = repoHeader + repoName + "TextMap/\(lang.filename)" - if self == .starRail { - urlStr = urlStr.replacingOccurrences(of: "CHS", with: "CN") - } - return URL(string: urlStr)! + URL(string: repoHeader + repoName + "TextMap/\(lang.filename)")! } // MARK: Private @@ -189,7 +185,7 @@ extension GachaMetaGenerator.SupportedGame { private var repoHeader: String { switch self { case .genshinImpact: return "https://gitlab.com/" - case .starRail: return "https://raw.githubusercontent.com/" + case .starRail: return "https://gitlab.com/" } } @@ -197,7 +193,7 @@ extension GachaMetaGenerator.SupportedGame { private var repoName: String { switch self { case .genshinImpact: return "Dimbreath/AnimeGameData/-/raw/master/" - case .starRail: return "EggLinks/DanhengServer-Resources/main/" + case .starRail: return "Dimbreath/TurnBasedGameData/-/raw/main/" } } }