mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-07 22:38:02 +03:00
use chart.lntype to sniff lntype instead of score.lntype
This commit is contained in:
@@ -97,7 +97,9 @@ export const ConverterIRBeatoraja: ConverterFunction<BeatorajaScore, BeatorajaCo
|
||||
importType,
|
||||
logger
|
||||
) => {
|
||||
if (data.lntype !== 0) {
|
||||
// ALWAYS USE CHART.LNTYPE, NOT DATA.LNTYPE!
|
||||
// beatoraja has a bug where IRScore LNTypes are always set to 0.
|
||||
if (context.chart.lntype !== 0) {
|
||||
throw new InvalidScoreFailure("CN or HCN mode is not supported by this IR.");
|
||||
}
|
||||
|
||||
|
||||
@@ -53,6 +53,7 @@ const PR_BeatorajaChart = {
|
||||
artist: "string",
|
||||
subartist: "string",
|
||||
total: p.isPositive,
|
||||
lntype: p.isIn(-1, 0, 1, 2),
|
||||
|
||||
// currently only accepted playtypes.
|
||||
mode: p.isIn("BEAT_7K", "BEAT_14K"),
|
||||
|
||||
@@ -21,6 +21,7 @@ export interface BeatorajaChart {
|
||||
notes: integer;
|
||||
hasRandom: boolean;
|
||||
hasUndefinedLN: boolean;
|
||||
lntype: -1 | 0 | 1 | 2;
|
||||
}
|
||||
|
||||
export interface BeatorajaScore {
|
||||
|
||||
Reference in New Issue
Block a user