Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-j-green committed Aug 22, 2024
1 parent fbc74e1 commit ae63623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gaseous-server/wwwroot/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,10 +684,10 @@ function BuildLaunchLink(engine, core, platformId, gameId, romId, isMediaGroup,
launchLink = launchLink.replace('<ROMID>', romId);
if (isMediaGroup == true) {
launchLink = launchLink.replace('<ISMEDIAGROUP>', 1);
launchLink = launchLink.replace('<FILENAME>', '/api/v1.1/Games/' + gameId + '/romgroup/' + romId + '/' + encodeURIComponent(filename) + '.zip');
launchLink = launchLink.replace('<FILENAME>', encodeURI('/api/v1.1/Games/' + gameId + '/romgroup/' + romId + '/' + filename + '.zip'));
} else {
launchLink = launchLink.replace('<ISMEDIAGROUP>', 0);
launchLink = launchLink.replace('<FILENAME>', '/api/v1.1/Games/' + gameId + '/roms/' + romId + '/' + encodeURIComponent(filename));
launchLink = launchLink.replace('<FILENAME>', encodeURI('/api/v1.1/Games/' + gameId + '/roms/' + romId + '/' + filename));
}

return launchLink;
Expand Down

0 comments on commit ae63623

Please sign in to comment.