only latest.log, better notification animation, better playtime updates

This commit is contained in:
olcxja 2026-09-26 09:33:39 +02:00
commit e082fedf19
4 changed files with 88 additions and 27 deletions

View file

@ -274,12 +274,12 @@ ipcMain.handle('shell:showItemInFolder', (e, p) => {
})
ipcMain.handle('games:getLogs', (e, id) => {
const dir = path.join(DIRS.DATA, 'logs')
let files = []
const file = require('./runner').latestLogPath(id)
try {
files = require('fs').readdirSync(dir).filter(f => f.startsWith(id + '-')).sort()
fs.accessSync(file)
return [file]
} catch {}
return files.map(f => path.join(dir, f))
return []
})
ipcMain.handle('games:kill', (e, id) => {