mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-03-21 17:34:46 -05:00
IIDX: Added Disable Beginner Option, misc
This commit is contained in:
parent
d490c53425
commit
1bb944e274
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -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, {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,11 @@
|
|||
|
||||
-
|
||||
const version = [
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19,
|
||||
20,
|
||||
21,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user