fixes:
- make prefix imported games paths relative to prefix - show placeholder icon as fallback - fix crossed working/exe directories - fix broken working dir in prefix imported games
This commit is contained in:
parent
b83e530392
commit
66f42f30cc
8 changed files with 74 additions and 10 deletions
|
|
@ -93,6 +93,14 @@ function updateGame(id, patch) {
|
|||
const games = loadGames()
|
||||
const g = games.find(x => x.id === id)
|
||||
if (!g) return null
|
||||
// prefix imports are pinned: their paths are stored relative to their
|
||||
// prefix, so NOTHING may move them to another prefix or flip their
|
||||
// import source (the patch fields are simply ignored)
|
||||
if (g.importSource === 'prefix' && patch) {
|
||||
patch = { ...patch }
|
||||
delete patch.prefix
|
||||
delete patch.importSource
|
||||
}
|
||||
// playSeconds goes to its own tiny file; the registry just mirrors it for
|
||||
// anything reading apps.json directly (loadGames prefers the file anyway).
|
||||
if (patch.playSeconds !== undefined) writePlaySeconds(id, patch.playSeconds)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue