Implement Bulk Change Function (#44)

* feat: added Sega 32X and Sega CD mappings

* feat: added lazy loading to the main game library

* fix: using full file name when loading roms into the emulator #43

* feat: introduced bulk rom matching #25

* fix: xss fix
This commit is contained in:
Michael Green
2023-08-04 10:30:22 +10:00
committed by GitHub
parent 59df041cfd
commit c396a81c1b
16 changed files with 443 additions and 100 deletions

View File

@@ -5,10 +5,8 @@
<div id="emulator"></div>
<script type="text/javascript">
const urlParams = new URLSearchParams(window.location.search);
var gameId = urlParams.get('gameid');
var platformId = urlParams.get('platformid');
var gameId = getQueryString('gameid', 'int');
var platformId = getQueryString('platformid', 'int');
var gameData;
var artworks = null;
var artworksPosition = 0;
@@ -39,7 +37,7 @@
emuBios = '/api/v1/Bios/zip/' + platformId;
}
switch (urlParams.get('engine')) {
switch (getQueryString('engine', 'string')) {
case 'EmulatorJS':
$('#emulator').load('/pages/EmulatorJS.html');
break;