mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-09 20:41:19 +00:00
remove some more cruft
This commit is contained in:
parent
c3c03d4e3c
commit
df9f33a7d7
@ -7,25 +7,26 @@
|
|||||||
<script type="text/javascript" src="browserfs.js"></script>
|
<script type="text/javascript" src="browserfs.js"></script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.emscripten { padding-right: 0; margin-left: auto; margin-right: auto; display: block; }
|
.webplayer { padding-right: 0; margin-left: auto; margin-right: auto; display: block; }
|
||||||
textarea.emscripten { border: 0px; font-family: 'Share Tech Mono'; font-size: 12px; width: 100%; overflow:hide; resize:none; color:black; }
|
textarea.webplayer { border: 0px; font-family: 'Share Tech Mono'; font-size: 12px; width: 100%; overflow:hide; resize:none; color:black; }
|
||||||
div.emscripten, h1 { text-align: left; }
|
div.webplayer, h1 { text-align: left; }
|
||||||
div.canvas_border { background-color:gray; width:800px; height:600px; margin-left: auto; margin-right: auto; }
|
div.canvas_border { background-color:gray; width:800px; height:600px; margin-left: auto; margin-right: auto; }
|
||||||
canvas.emscripten { border: 0px none; }
|
canvas.webplayer { border: 0px none; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="emscripten_border" id="canvas_div" style="display: none">
|
<div class="webplayer_border" id="canvas_div" style="display: none">
|
||||||
<canvas class="emscripten" id="canvas" tabindex="1" oncontextmenu="event.preventDefault()"></canvas>
|
<canvas class="webplayer" id="canvas" tabindex="1" oncontextmenu="event.preventDefault()"></canvas>
|
||||||
</div>
|
</div>
|
||||||
<div class="emscripten emscripten_border" id="openrom">
|
<hr/>
|
||||||
|
<div class="webplayer webplayer_border" id="openrom">
|
||||||
<button id="btnLoad" onclick="document.getElementById('rom').click()">Upload Content</button>
|
<button id="btnLoad" onclick="document.getElementById('rom').click()">Upload Content</button>
|
||||||
<input style="display: none" type="file" id="rom" name="upload" onclick="document.getElementById('btnLoad').click();" multiple />
|
<input style="display: none" type="file" id="rom" name="upload" onclick="document.getElementById('btnLoad').click();" multiple />
|
||||||
<button id="btnStart" onclick="startRetroArch()">Start RetroArch</button>
|
<button id="btnStart" onclick="startRetroArch()">Start RetroArch</button>
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="emscripten">
|
<div class="webplayer">
|
||||||
<input type="checkbox" id="resize"><label for="resize">Resize canvas</label>
|
<input type="checkbox" id="resize"><label for="resize">Resize canvas</label>
|
||||||
<input type="checkbox" id="pointerLock" checked><label for="pointerLock">Lock/hide mouse pointer</label>
|
<input type="checkbox" id="pointerLock" checked><label for="pointerLock">Lock/hide mouse pointer</label>
|
||||||
<input type="button" value="Fullscreen" onclick="Module.requestFullScreen(document.getElementById('pointerLock').checked, document.getElementById('resize').checked)"><br>
|
<input type="button" value="Fullscreen" onclick="Module.requestFullScreen(document.getElementById('pointerLock').checked, document.getElementById('resize').checked)"><br>
|
||||||
@ -35,46 +36,14 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
<textarea class="emscripten" id="output" rows="8"></textarea>
|
<textarea class="webplayer" id="output" rows="15"></textarea>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="emscripten" id="controls">
|
|
||||||
Controls:<br>
|
|
||||||
<br>
|
|
||||||
A button (OK in menu): X<br>
|
|
||||||
B button (Back in menu): Z<br>
|
|
||||||
X Button: S<br>
|
|
||||||
Y Button: A<br>
|
|
||||||
L Button: Q<br>
|
|
||||||
R Button: W<br>
|
|
||||||
D-pad: Arrow Keys<br>
|
|
||||||
Start Button: Enter<br>
|
|
||||||
Select Button: Shift<br>
|
|
||||||
Toggle Menu: F1<br>
|
|
||||||
Fast forward: Spacebar (toggle)<br>
|
|
||||||
Slow motion: E (hold)</br>
|
|
||||||
Save state: F2<br>
|
|
||||||
Load state: F4
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
var count = 0;
|
var count = 0;
|
||||||
function runEmulator(files)
|
function startRetroArch()
|
||||||
{
|
{
|
||||||
count = files.length;
|
|
||||||
document.getElementById("openrom").innerHTML = '';
|
|
||||||
document.getElementById("openrom").style.display = 'none';
|
|
||||||
for (var i = 0; i < files.length; i++)
|
|
||||||
{
|
|
||||||
filereader = new FileReader();
|
|
||||||
filereader.file_name = files[i].name;
|
|
||||||
filereader.onload = function(){uploadData(this.result, this.file_name)};
|
|
||||||
filereader.readAsArrayBuffer(files[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function startRetroArch()
|
|
||||||
{
|
|
||||||
Module.FS_createFolder('/', 'etc', true, true);
|
Module.FS_createFolder('/', 'etc', true, true);
|
||||||
Module.FS_createFolder('/', 'config', true, true);
|
Module.FS_createFolder('/', 'config', true, true);
|
||||||
Module.FS_createFolder('/', 'content', true, true);
|
Module.FS_createFolder('/', 'content', true, true);
|
||||||
@ -95,7 +64,7 @@
|
|||||||
document.getElementById('latency').disabled = true;
|
document.getElementById('latency').disabled = true;
|
||||||
document.getElementById('latency-label').style.color = 'gray';
|
document.getElementById('latency-label').style.color = 'gray';
|
||||||
Module['callMain'](Module['arguments']);
|
Module['callMain'](Module['arguments']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function uploadData(data, name)
|
function uploadData(data, name)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user