mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-25 01:21:55 +00:00
update : 星铁支持face-q
This commit is contained in:
parent
aaf25da5ae
commit
54da8be2e7
@ -128,10 +128,15 @@ const CharImg = {
|
|||||||
let fileType = 'webp'
|
let fileType = 'webp'
|
||||||
const nPath = `/meta-sr/character/${name}/`
|
const nPath = `/meta-sr/character/${name}/`
|
||||||
let imgs = {}
|
let imgs = {}
|
||||||
let add = (key, path) => {
|
let add = (key, path, path2) => {
|
||||||
imgs[key] = `${nPath}${path}.${fileType}`
|
if (path2 && fs.existsSync(`${rPath}/${nPath}/${path2}.${fileType}`)) {
|
||||||
|
imgs[key] = `${nPath}${path2}.${fileType}`
|
||||||
|
} else {
|
||||||
|
imgs[key] = `${nPath}${path}.${fileType}`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
add('face', 'imgs/face')
|
add('face', 'imgs/face')
|
||||||
|
add('qFace', 'imgs/face', 'imgs/face-q')
|
||||||
add('splash', 'imgs/splash')
|
add('splash', 'imgs/splash')
|
||||||
add('preview', 'imgs/preview')
|
add('preview', 'imgs/preview')
|
||||||
for (let i = 1; i <= 3; i++) {
|
for (let i = 1; i <= 3; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user