Conf changes and default game

Changed conf default to have beta turned off due to ui issues. Also updated the main library so that the first game in the menu is loaded if no game is chosen.
This commit is contained in:
Ramaerel 2022-07-27 12:59:10 +10:00
parent e6646c844a
commit 01942e09e7
2 changed files with 13 additions and 8 deletions

View File

@ -32,22 +32,27 @@
</div>
<script type='text/javascript'>
<?php if (isset($_GET['games'])) {
$gid = $_GET['games'];
} else {
$gid = 0;
}
?>
EJS_player = '#game';
EJS_core = <?php echo("'".$gamedata[$_GET['games']]["Console"]."'"); ?>;
EJS_gameUrl = <?php echo('"./roms/'.$romlistfin[$_GET['games']].'"'); ?>;
<?php if($gamedata[$_GET['games']]["Console"] == "psx") {
EJS_core = <?php echo("'".$gamedata[$gid]["Console"]."'"); ?>;
EJS_gameUrl = <?php echo('"./roms/'.$romlistfin[$gid].'"'); ?>;
<?php if($gamedata[$gid]["Console"] == "psx") {
echo("EJS_biosUrl = './bios/psx.bin';\r\n");
}
?>
<?php if($conf["netplay"] == "true") {
echo("EJS_gameID = ".$_GET['games'].";\r\n ");
echo("EJS_gameID = ".$gid.";\r\n");
}
if($conf["beta"] == "true") {
echo("EJS_BETA = true;");
echo("EJS_BETA = true; \r\n");
}
?>
EJS_pathtodata = 'data/';
EJS_pathtodata = 'data/';
</script>

View File

@ -2,4 +2,4 @@ rom_dir = "./roms/" ;The ROM Directory. Defaults to ./roms/
scale = 1 ;Scale the viewport up, parts of a number work (eg 1.25, 1.5). Defaults to 1
bgcolor = "#333333" ;Background color. Defaults to #333333 (The same as the client background)
netplay = "false" ;Enable or disable netplay. Requires a hosted environment and all players to be on the same website. Defaults to false
beta = "true" ;Enable the beta emulators for systems that support it. Defaults to true
beta = "false" ;Enable the beta emulators for systems that support it. Defaults to false