mirror of
https://github.com/Ramaerel/emulatorjs-GameLibrary.git
synced 2026-02-06 10:56:54 +00:00
commit
ba43ff1b3a
5421
pclzip.lib.php
Normal file
5421
pclzip.lib.php
Normal file
File diff suppressed because it is too large
Load Diff
15
play.php
15
play.php
@ -25,7 +25,18 @@
|
||||
//Find console
|
||||
$name = basename($_GET['game']);
|
||||
$ext = explode(".", $name);
|
||||
$ext = end($ext);
|
||||
$ext = strtolower(end($ext));
|
||||
|
||||
//for zipfile
|
||||
if ($ext=='zip'){
|
||||
$zip = new ZipArchive;
|
||||
if ($zip->open("roms/".$name))
|
||||
{
|
||||
$names =$zip->getNameIndex(0);
|
||||
$ext0 = explode(".", $names);
|
||||
$ext = strtolower(end($ext));
|
||||
}
|
||||
}
|
||||
|
||||
if (in_array($ext, $nes)) { $console = 'nes'; }
|
||||
else if (in_array($ext, $snes)) { $console = 'snes'; }
|
||||
@ -153,4 +164,4 @@
|
||||
</script>
|
||||
<script src='data/loader.js'></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user