From 1a027d86e5e7a4af713aed5ed2dee5b7d7c73ec4 Mon Sep 17 00:00:00 2001 From: duel0213 Date: Fri, 24 Jan 2025 21:12:26 +0900 Subject: [PATCH] IIDX: Added migration for existing IIDX29 pcdata --- iidx@asphyxia/handlers/pc.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/iidx@asphyxia/handlers/pc.ts b/iidx@asphyxia/handlers/pc.ts index 86150e5..f40c86e 100644 --- a/iidx@asphyxia/handlers/pc.ts +++ b/iidx@asphyxia/handlers/pc.ts @@ -566,6 +566,14 @@ export const pcget: EPR = async (info, data, send) => { lm_custom = lm_customdata; } + // migration // + if (version == 29 && _.isNil(pcdata.dr_sprank)) { + pcdata.dr_sprank = IIDX29_pcdata.dr_sprank; + pcdata.dr_sppoint = IIDX29_pcdata.dr_sppoint; + pcdata.dr_dprank = IIDX29_pcdata.dr_dprank; + pcdata.dr_dppoint = IIDX29_pcdata.dr_dppoint; + } + const appendsettings = appendSettingConverter( custom.rank_folder, custom.clear_folder,