IIDX: Added Disable Beginner Option, misc

This commit is contained in:
duel0213 2024-05-04 00:22:08 +09:00
parent d490c53425
commit 1bb944e274
7 changed files with 39 additions and 2 deletions

View File

@ -16,7 +16,7 @@ Supported Versions
- beatmaniaIIDX 22 PENDUAL (2015080500)
- beatmaniaIIDX 23 copula (2016083100)
- beatmaniaIIDX 24 SINOBUZ (2017082800)
- beatmaniaIIDX 25 CANNON BALLERS (2018012300)
- beatmaniaIIDX 25 CANNON BALLERS (2018091900)
- beatmaniaIIDX 26 Rootage (2019090200)
- beatmaniaIIDX 27 HEROIC VERSE (2020092900)
- beatmaniaIIDX 28 BISTROVER (2021091500)

View File

@ -452,6 +452,23 @@ export const pcget: EPR = async (info, data, send) => {
if (_.isNil(pcdata)) return send.deny();
// migration //
if (_.isNil(custom.disable_beginner_option)) {
await DB.Upsert<custom>(refid,
{
collection: "custom",
version: version,
},
{
$set: {
disable_beginner_option: false,
}
}
);
custom.disable_beginner_option = false;
}
const appendsettings = appendSettingConverter(
custom.rank_folder,
custom.clear_folder,
@ -465,6 +482,7 @@ export const pcget: EPR = async (info, data, send) => {
custom.classic_hispeed,
custom.rival_played_folder,
custom.hide_iidxid,
custom.disable_beginner_option,
);
let dArray = [], eArray = [], rArray = [], mArray = [], bArray = [];

View File

@ -236,6 +236,7 @@ export const updateCustomSettings = async (data) => {
classic_hispeed: StoB(data.classic_hispeed),
rival_played_folder: StoB(data.rival_played_folder),
hide_iidxid: StoB(data.hide_iidxid),
disable_beginner_option: StoB(data.disable_beginner_option),
}
await DB.Upsert<custom>(data.refid, {

View File

@ -38,6 +38,7 @@ export interface custom {
classic_hispeed: boolean;
rival_played_folder: boolean;
hide_iidxid: boolean;
disable_beginner_option: boolean;
// qpro //
qpro_head: number;
@ -88,6 +89,7 @@ export const default_custom = {
classic_hispeed: false,
rival_played_folder: true,
hide_iidxid: false,
disable_beginner_option: false,
qpro_head: 0,
qpro_hair: 0,

View File

@ -210,6 +210,7 @@ export function appendSettingConverter(
chs: boolean,
rpf: boolean,
hii: boolean,
dbo: boolean,
) {
const result =
Number(rf) << 0 |
@ -223,7 +224,8 @@ export function appendSettingConverter(
Number(dgc) << 9 |
Number(chs) << 10 |
Number(rpf) << 11 |
Number(hii) << 12;
Number(hii) << 12 |
Number(dbo) << 14;
return result;
}

View File

@ -4,6 +4,11 @@
-
const version = [
14,
15,
16,
17,
18,
19,
20,
21,

View File

@ -5,6 +5,11 @@
-
const version = [
14,
15,
16,
17,
18,
19,
20,
21,
@ -162,6 +167,10 @@ div
label.label Hide IIDX ID
.control
input(type="checkbox" name="hide_iidxid", checked=Boolean(custom.hide_iidxid))
.field
label.label Disable Beginner Option
.control
input(type="checkbox" name="disable_beginner_option", checked=Boolean(custom.disable_beginner_option))
//- QPRO
.field
label.label QPRO Head