mirror of https://github.com/hykilpikonna/AquaDX
[F] "Felica" -> "FeliCa"
parent
db7be134c7
commit
9d19c99abe
|
@ -107,7 +107,7 @@ export const EN_REF_HOME = {
|
||||||
'home.linkcard.notfound': 'Card not found',
|
'home.linkcard.notfound': 'Card not found',
|
||||||
'home.linkcard.unlink': 'Unlink Card',
|
'home.linkcard.unlink': 'Unlink Card',
|
||||||
'home.linkcard.unlink-notice': 'Are you sure you want to unlink this card?',
|
'home.linkcard.unlink-notice': 'Are you sure you want to unlink this card?',
|
||||||
'home.linkcard.felica-ac-warning': 'This Access Code is of a Felica AIC card.\nIf you are logging in with a physical card (not aime.txt emulation), unlike the official server, you need to bind the Felica SN of the card (or the 0-prefixed card number shown in the game) instead of this code.\nIf you are logging in with aime.txt emulation, please ignore this warning and proceed.',
|
'home.linkcard.felica-ac-warning': 'This Access Code is of a FeliCa AIC card.\nIf you are logging in with a physical card (not aime.txt emulation), unlike the official server, you need to bind the FeliCa SN of the card (or the 00-prefixed card number shown in the game) instead of this code.\nIf you are logging in with aime.txt emulation, please ignore this warning and proceed.',
|
||||||
'home.setup.welcome': 'Welcome! If you own an arcade cabinet or game setup, please follow the instructions below to set up the connection with AquaDX.',
|
'home.setup.welcome': 'Welcome! If you own an arcade cabinet or game setup, please follow the instructions below to set up the connection with AquaDX.',
|
||||||
'home.setup.blockquote': 'We assume that you already have the required files and can run the game (e.g. ROM and segatools) that come with the cabinet or game setup. If not, please contact the seller of your device for the required files, as we will not provide them for copyright reasons.',
|
'home.setup.blockquote': 'We assume that you already have the required files and can run the game (e.g. ROM and segatools) that come with the cabinet or game setup. If not, please contact the seller of your device for the required files, as we will not provide them for copyright reasons.',
|
||||||
'home.setup.get': 'Get started',
|
'home.setup.get': 'Get started',
|
||||||
|
|
|
@ -117,7 +117,7 @@ const zhHome: typeof EN_REF_HOME = {
|
||||||
'home.linkcard.notfound': "找不到卡",
|
'home.linkcard.notfound': "找不到卡",
|
||||||
'home.linkcard.unlink': "取消链接",
|
'home.linkcard.unlink': "取消链接",
|
||||||
'home.linkcard.unlink-notice': "你确定要取消此卡的链接吗?",
|
'home.linkcard.unlink-notice': "你确定要取消此卡的链接吗?",
|
||||||
'home.linkcard.felica-ac-warning': "该 Access Code 是一张 Felica AIC 卡。\n如果你使用实体卡(而非 aime.txt 模拟)刷卡登录游戏,与官方服务器不同,你需要绑定该卡的 Felica SN(或与之对应的,游戏界面中查看得到的 0 开头的卡号)而非此号码。\n如果你使用 aime.txt 模拟登录,请忽略本警告继续绑定。",
|
'home.linkcard.felica-ac-warning': "该 Access Code 是一张 FeliCa AIC 卡。\n如果你使用实体卡(而非 aime.txt 模拟)刷卡登录游戏,与官方服务器不同,你需要绑定该卡的 FeliCa SN(或与之对应的,游戏界面中查看得到的 00 开头的卡号)而非此号码。\n如果你使用 aime.txt 模拟登录,请忽略本警告继续绑定。",
|
||||||
'home.setup.welcome': "欢迎! 如果您有街机框体或者手台,请按照以下说明设置以连接到 AquaDX。",
|
'home.setup.welcome': "欢迎! 如果您有街机框体或者手台,请按照以下说明设置以连接到 AquaDX。",
|
||||||
'home.setup.blockquote': "我们假设您已经拥有所需的文件,并且可以启动机台或手台附带的游戏(例如 ROM 和 segatools)。如果没有,请联系您设备的卖家以获取所需的文件,因为出于版权原因,我们不会提供这些文件。",
|
'home.setup.blockquote': "我们假设您已经拥有所需的文件,并且可以启动机台或手台附带的游戏(例如 ROM 和 segatools)。如果没有,请联系您设备的卖家以获取所需的文件,因为出于版权原因,我们不会提供这些文件。",
|
||||||
'home.setup.get': "开始",
|
'home.setup.get': "开始",
|
||||||
|
|
|
@ -223,7 +223,7 @@
|
||||||
function formatLUID(luid: string, ghost: boolean = false) {
|
function formatLUID(luid: string, ghost: boolean = false) {
|
||||||
if (ghost) return luid.slice(0, 6) + " " + (luid.slice(6).match(/.{4}/g)?.join(" ") ?? "")
|
if (ghost) return luid.slice(0, 6) + " " + (luid.slice(6).match(/.{4}/g)?.join(" ") ?? "")
|
||||||
switch (cardType(luid)) {
|
switch (cardType(luid)) {
|
||||||
case "Felica SN":
|
case "FeliCa SN":
|
||||||
return BigInt(luid).toString(16).toUpperCase().padStart(16, "0").match(/.{1,2}/g)!.join(":")
|
return BigInt(luid).toString(16).toUpperCase().padStart(16, "0").match(/.{1,2}/g)!.join(":")
|
||||||
case "Access Code":
|
case "Access Code":
|
||||||
return luid.match(/.{4}/g)!.join(" ")
|
return luid.match(/.{4}/g)!.join(" ")
|
||||||
|
@ -233,9 +233,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function cardType(luid: string) {
|
function cardType(luid: string) {
|
||||||
if (luid.startsWith("00")) return "Felica SN"
|
if (luid.startsWith("00")) return "FeliCa SN"
|
||||||
if (luid.length === 20) return "Access Code"
|
if (luid.length === 20) return "Access Code"
|
||||||
if (luid.includes(":")) return "Felica SN"
|
if (luid.includes(":")) return "FeliCa SN"
|
||||||
if (luid.includes(" ")) return "Access Code"
|
if (luid.includes(" ")) return "Access Code"
|
||||||
return "Unknown"
|
return "Unknown"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue