chore: 为配置备份文件设置 gitignore
This commit is contained in:
parent
7d16bd64fa
commit
392c8abf9a
|
@ -8,6 +8,7 @@ kotonebot-ui/node_modules
|
|||
kotonebot-ui/.vite
|
||||
dumps*/
|
||||
config.json
|
||||
config.v*.json
|
||||
reports/
|
||||
tmp/
|
||||
res/sprites_compiled/
|
||||
|
|
|
@ -1,114 +0,0 @@
|
|||
{
|
||||
"version": 1,
|
||||
"user_configs": [
|
||||
{
|
||||
"name": "默认配置",
|
||||
"id": "8eb503b546334df5a95f4818120d7c36",
|
||||
"category": "default",
|
||||
"description": "默认配置",
|
||||
"backend": {
|
||||
"type": "custom",
|
||||
"adb_ip": "127.0.0.1",
|
||||
"adb_port": 5555,
|
||||
"screenshot_impl": "adb",
|
||||
"check_emulator": true,
|
||||
"emulator_path": "E:\\Programs\\leidian\\LDPlayerVK\\dnplayer.exe"
|
||||
},
|
||||
"keep_screenshots": true,
|
||||
"options": {
|
||||
"purchase": {
|
||||
"enabled": true,
|
||||
"money_enabled": true,
|
||||
"money_items": [
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19,
|
||||
20,
|
||||
21,
|
||||
22
|
||||
],
|
||||
"money_refresh_on": "never",
|
||||
"ap_enabled": true,
|
||||
"ap_items": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]
|
||||
},
|
||||
"activity_funds": {
|
||||
"enabled": true
|
||||
},
|
||||
"presents": {
|
||||
"enabled": true
|
||||
},
|
||||
"assignment": {
|
||||
"enabled": true,
|
||||
"mini_live_reassign_enabled": true,
|
||||
"mini_live_duration": 12,
|
||||
"online_live_reassign_enabled": true,
|
||||
"online_live_duration": 12
|
||||
},
|
||||
"contest": {
|
||||
"enabled": true,
|
||||
"select_which_contestant": 3
|
||||
},
|
||||
"produce": {
|
||||
"enabled": false,
|
||||
"mode": "regular",
|
||||
"produce_count": 1,
|
||||
"idols": [],
|
||||
"memory_sets": [],
|
||||
"support_card_sets": [],
|
||||
"auto_set_memory": false,
|
||||
"auto_set_support_card": false,
|
||||
"use_pt_boost": false,
|
||||
"use_note_boost": false,
|
||||
"follow_producer": false,
|
||||
"self_study_lesson": "dance",
|
||||
"prefer_lesson_ap": false,
|
||||
"actions_order": [
|
||||
"recommended",
|
||||
"visual",
|
||||
"vocal",
|
||||
"dance",
|
||||
"allowance",
|
||||
"outing",
|
||||
"study",
|
||||
"rest"
|
||||
],
|
||||
"recommend_card_detection_mode": "normal"
|
||||
},
|
||||
"mission_reward": {
|
||||
"enabled": true
|
||||
},
|
||||
"club_reward": {
|
||||
"enabled": true,
|
||||
"selected_note": 11
|
||||
},
|
||||
"upgrade_support_card": {
|
||||
"enabled": true
|
||||
},
|
||||
"capsule_toys": {
|
||||
"enabled": true,
|
||||
"friend_capsule_toys_count": 0,
|
||||
"sense_capsule_toys_count": 1,
|
||||
"logic_capsule_toys_count": 0,
|
||||
"anomaly_capsule_toys_count": 0
|
||||
},
|
||||
"trace": {
|
||||
"recommend_card_detection": false
|
||||
},
|
||||
"start_game": {
|
||||
"enabled": true,
|
||||
"start_through_kuyo": true,
|
||||
"game_package_name": "com.bandinamcoent.idolmaster_gakuen",
|
||||
"kuyo_package_name": "org.kuyo.game"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -936,7 +936,7 @@ def upgrade_v1_to_v2(options: dict[str, Any]) -> tuple[dict[str, Any], str | Non
|
|||
old_idols = options['produce']['idols']
|
||||
new_idols = list(filter(lambda x: x is not None, map(map_idol, old_idols)))
|
||||
options['produce']['idols'] = new_idols
|
||||
shutil.copy('config.json', 'config.json.v1.json')
|
||||
shutil.copy('config.json', 'config.v1.json')
|
||||
return options, msg
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue