mirror of
https://github.com/Ramaerel/emulatorjs-GameLibrary.git
synced 2026-02-06 10:56:54 +00:00
add select console from zip file
This commit is contained in:
parent
c37a559fe7
commit
c9c6a87f46
14
play.php
14
play.php
@ -27,6 +27,18 @@
|
||||
$ext = explode(".", $name);
|
||||
$ext = end($ext);
|
||||
|
||||
//for zipfile
|
||||
if ($ext=='zip'){
|
||||
include_once('pclzip.lib.php');
|
||||
$zip = new PclZip($name);
|
||||
$contents = $zip->listContent();
|
||||
foreach ($contents as $content) {
|
||||
$names=$content['filename'];
|
||||
$ext = explode(".", $names);
|
||||
$ext = end($ext);
|
||||
}
|
||||
}
|
||||
|
||||
if (in_array($ext, $nes)) { $console = 'nes'; }
|
||||
else if (in_array($ext, $snes)) { $console = 'snes'; }
|
||||
else if (in_array($ext, $n64)) { $console = 'n64'; }
|
||||
@ -153,4 +165,4 @@
|
||||
</script>
|
||||
<script src='data/loader.js'></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user