forked from Yuri-YuzuChaN/maimaiDX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresources.py
More file actions
50 lines (42 loc) · 1.93 KB
/
Copy pathresources.py
File metadata and controls
50 lines (42 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from pathlib import Path
from .config import maiconfig
if maiconfig.maimaidx_path:
static = Path(maiconfig.maimaidx_path)
else:
raise ValueError(
"插件未检测到静态文件夹 `static`,请根据 README 配置页说明进行下载静态文件"
)
# 静态资源路径
font_dir = static / "font"
data_dir = static / "data"
mai_dir = static / "mai"
pic_dir = mai_dir / "pic"
cover_dir = mai_dir / "cover"
plate_dir = mai_dir / "plate"
shougou_dir = mai_dir / "shougou"
plate_version_dir = mai_dir / "plate_version"
plate_table_dir = mai_dir / "plate_table"
rating_table_dir = mai_dir / "rating_table"
data_dir.mkdir(parents=True, exist_ok=True)
plate_table_dir.mkdir(parents=True, exist_ok=True)
rating_table_dir.mkdir(parents=True, exist_ok=True)
# 路径文件
pie_html_file = static / "temp_pie.html" # 饼图html文件
guess_file = data_dir / "group_guess_switch.json" # 猜歌开关群文件
group_alias_file = data_dir / "group_alias_switch.json" # 别名推送开关群文件
alias_file = data_dir / "music_alias.json" # 柚子别名暂存文件
lxns_alias_file = data_dir / "lxns_music_alias.json" # 落雪别名暂存文件
local_alias_file = data_dir / "local_music_alias.json" # 本地别名文件
music_file = data_dir / "music_data.json" # 水鱼曲目暂存文件
lxns_music_file = data_dir / "lxns_music_data.json" # 落雪曲目暂存文件
chart_file = data_dir / "music_chart.json" # 谱面数据暂存文件
plate_file = data_dir / "plate_data.json" # 牌子数据暂存文件
merge_music_file = data_dir / "merge_music_data.json" # 合并曲目数据文件
merge_alias_file = data_dir / "merge_music_alias.json" # 合并曲目别名数据文件
# 机厅
arcades_json = data_dir / 'arcades.json' # 机厅
# 字体路径
SIYUAN = font_dir / "ResourceHanRoundedCN-Bold.ttf"
SHANGGUMONO = font_dir / "ShangguMonoSC-Regular.otf"
TBFONT = font_dir / "Torus SemiBold.otf"
FOTNEWRODIN = font_dir / "FOT-NewRodin Pro EB.otf"