mirror of
https://github.com/Ramaerel/emulatorjs-GameLibrary.git
synced 2026-02-06 19:07:10 +00:00
30 lines
881 B
PHP
30 lines
881 B
PHP
<?php echo("\r\n<div style='width:". 640*$conf["scale"] ."px;height:". 480*$conf["scale"] ."px;max-width:100%;margin: auto auto;'>"); ?>
|
|
<div id='game'></div>
|
|
</div>
|
|
</div>
|
|
<script type='text/javascript'>
|
|
<?php if (isset($_GET['games'])) {
|
|
$gid = $_GET['games'];
|
|
} else {
|
|
$gid = 0;
|
|
}
|
|
?>
|
|
EJS_player = '#game';
|
|
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 = ".$gid.";\r\n");
|
|
}
|
|
if($conf["beta"] == "true") {
|
|
echo("EJS_BETA = true; \r\n");
|
|
}
|
|
?>
|
|
EJS_pathtodata = 'data/';
|
|
|
|
</script>
|
|
|
|
<script src='data/loader.js'></script>
|