Fix Play button 404: bundle path and field name
- .jsdos bundles saved flat in data/games/ so /games/{id}.jsdos serves them
- bundleUrl() uses game.id (matches JSON) instead of game.slug (undefined)
- Delete handler also removes flat .jsdos bundle on game deletion
This commit is contained in:
1 parent
df5ce4f127
commit
545e2d2bb5
4 files changed
+9
-9
No files matched your search
@@ -75,7 +75,7 @@ export function artworkUrl(path) {
|
||||
export function bundleUrl(game) {
|
||||
if (!game) return null;
|
||||
if (game.bundle_type === "sockdrive") {
|
||||
return `/api/sockdrive/${game.slug}/file?path=.jsdos/dosbox.conf`;
|
||||
return `/api/sockdrive/${game.id}/file?path=.jsdos/dosbox.conf`;
|
||||
}
|
||||
return `/games/${game.slug}.jsdos`;
|
||||
return `/games/${game.id}.jsdos`;
|
||||
}
|
||||
Reference in new issue
Block a user