Skip to content

Commit

Permalink
fix(live): event live missing score and lyrics
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Nov 1, 2021
1 parent af66a2d commit e4553e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/ts/renderer/back/on-master-read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default async function readMaster (master: DB, manifestDB: DB): Promise<{
const eventLimited = await master.find('event_available', ['event_id', 'reward_id'], undefined, { reward_id: 1 })

let userLevel = await master.find('user_level', ['level', 'stamina', 'total_exp'])
const liveData = await master.find('live_data', ['id', 'music_data_id'])
const liveData = await master.find('live_data', ['id', 'music_data_id', 'event_type', 'difficulty_5'])
const jacketManifest = await manifestDB.find('manifests', ['name', 'hash'], { name: { $like: 'jacket%unity3d' } })
// master.close((err: Error) => {
// if (err) throw err
Expand Down
1 change: 1 addition & 0 deletions app/src/ts/renderer/back/resolve-audio-manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export default function (bgmManifest: BGM[], liveManifest: Live[], musicData: Mu
for (let j = 0; j < liveDataArr.length; j++) {
if (Number(liveDataArr[j].event_type) !== 0 && Number(liveDataArr[j].difficulty_5) !== 0) {
id = liveDataArr[j].id
break
}
}
if (id === null) {
Expand Down
4 changes: 4 additions & 0 deletions app/src/ts/renderer/mishiro-live.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,10 @@ export default class extends Vue {
// hcaInAsar = true
}
}
if (!hcaFilePathExist) {
this.$set(audio, '_canplay', false)
return
}

this.event.$emit('liveSelect', { src: hcaFilePath })
this.jacketSrc = ''
Expand Down

0 comments on commit e4553e5

Please sign in to comment.