-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: PiSaucer <[email protected]>
- Loading branch information
Showing
81 changed files
with
4,172 additions
and
3,305 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,145 +1,176 @@ | ||
<html> | ||
|
||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /> | ||
|
||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title></title> | ||
<style> | ||
html,body{ | ||
width: 100%; | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
background: black; | ||
color: #c3ff00; | ||
overflow: hidden; | ||
} | ||
#canvas{ | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
width: auto; | ||
height: 100%; | ||
background: black; | ||
padding: 0; | ||
margin:0; | ||
-webkit-transform: translate(-50%, -50%); | ||
-moz-transform: translate(-50%, -50%); | ||
-ms-transform: translate(-50%, -50%); | ||
-o-transform: translate(-50%, -50%); | ||
transform: translate(-50%, -50%); | ||
/*pointer-events:none;*/ | ||
} | ||
.emularity-splash-screen{ | ||
text-align: center; | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
bottom: 50%; | ||
margin: 0; | ||
box-sizing: border-box; color: #000; | ||
} | ||
html, | ||
body { | ||
width: 100%; | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
background: black; | ||
color: #c3ff00; | ||
overflow: hidden; | ||
} | ||
|
||
#canvas { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
width: auto; | ||
height: 100%; | ||
background: black; | ||
padding: 0; | ||
margin: 0; | ||
-webkit-transform: translate(-50%, -50%); | ||
-moz-transform: translate(-50%, -50%); | ||
-ms-transform: translate(-50%, -50%); | ||
-o-transform: translate(-50%, -50%); | ||
transform: translate(-50%, -50%); | ||
/*pointer-events:none;*/ | ||
} | ||
|
||
.emularity-splash-screen { | ||
text-align: center; | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
bottom: 50%; | ||
margin: 0; | ||
box-sizing: border-box; | ||
color: #000; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<canvas id="canvas" style="width: 50%; height: 50%; display: block; margin: 0 auto;" onClick="window.focus();"/> | ||
</head> | ||
|
||
<body> | ||
<canvas id="canvas" style="width: 50%; height: 50%; display: block; margin: 0 auto;" onClick="window.focus();" /> | ||
<script type="text/javascript" src="js/es6-promise.js"></script> | ||
<script type="text/javascript" src="js/browserfs.min.js"></script> | ||
<script type="text/javascript" src="js/loader.js"></script> | ||
<script src="../../../c/libs/jquery.min.js"></script> | ||
|
||
<script type="text/javascript"> | ||
function $_GET(param) { | ||
var vars = {}; | ||
window.location.href.replace( location.hash, '' ).replace( | ||
/[?&]+([^=&]+)=?([^&]*)?/gi, // regexp | ||
function( m, key, value ) { // callback | ||
vars[key] = value !== undefined ? value : ''; | ||
} | ||
); | ||
if ( param ) { | ||
return vars[param] ? vars[param] : null; | ||
function $_GET(param) { | ||
var vars = {}; | ||
window.location.href.replace(location.hash, '').replace( | ||
/[?&]+([^=&]+)=?([^&]*)?/gi, // regexp | ||
function(m, key, value) { // callback | ||
vars[key] = value !== undefined ? value : ''; | ||
} | ||
); | ||
if (param) { | ||
return vars[param] ? vars[param] : null; | ||
} | ||
return vars; | ||
} | ||
return vars; | ||
} | ||
|
||
var softs = { | ||
|
||
Rogue: {file:'ROGUE.zip', cmd:'./ROGUE.EXE', pointer:true}, | ||
|
||
//Games | ||
//dosbox/index.html?soft= | ||
OREGON: {file:'OREGON.zip', cmd:'OREGON/OREGON.exe', pointer:true}, | ||
Doom: {file:'DOOM.zip', cmd:'DOOM/DOOM.EXE', pointer:true}, | ||
Doom2: {file:'DOOM2.zip', cmd:'DOOM2/DOOM2.EXE', pointer:true}, | ||
WOLF3D: { file: 'WOLF3D.zip', cmd: 'WOLF3D/WOLF3D.EXE', pointer: true } | ||
|
||
} | ||
var file="Rogue"; | ||
if ($_GET('soft')!=null) { | ||
if (softs[$_GET('soft')]!=undefined) { | ||
file = $_GET('soft') | ||
//parent.$notif('Loading '+$_GET('soft').replace(/_/g," ")+'.') | ||
}; | ||
}; | ||
// | ||
// DOS FILES | ||
if(softs[file].machine==undefined){ | ||
var dosbox = new Emulator(document.querySelector("#canvas"), | ||
null, | ||
new DosBoxLoader(DosBoxLoader.emulatorJS("js/dosbox-sync.js"), | ||
DosBoxLoader.locateAdditionalEmulatorJS(locateAdditionalFiles), | ||
DosBoxLoader.nativeResolution(640, 400), | ||
DosBoxLoader.mountZip("c", | ||
DosBoxLoader.fetchFile("Software","softs/"+softs[file].file)), | ||
DosBoxLoader.startExe(softs[file].cmd))); | ||
dosbox.start({ waitAfterDownloading: false }); | ||
|
||
function locateAdditionalFiles(filename) { | ||
if (filename === "dosbox.html.mem") { | ||
return "js/dosbox-sync.mem"; | ||
} | ||
return "js/"+ filename; | ||
|
||
var softs = { | ||
|
||
Rogue: { | ||
file: 'ROGUE.zip', | ||
cmd: './ROGUE.EXE', | ||
pointer: true | ||
}, | ||
|
||
//Games | ||
//dosbox/index.html?soft= | ||
OREGON: { | ||
file: 'OREGON.zip', | ||
cmd: 'OREGON/OREGON.exe', | ||
pointer: true | ||
}, | ||
Doom: { | ||
file: 'DOOM.zip', | ||
cmd: 'DOOM/DOOM.EXE', | ||
pointer: true | ||
}, | ||
Doom2: { | ||
file: 'DOOM2.zip', | ||
cmd: 'DOOM2/DOOM2.EXE', | ||
pointer: true | ||
}, | ||
WOLF3D: { | ||
file: 'WOLF3D.zip', | ||
cmd: 'WOLF3D/WOLF3D.EXE', | ||
pointer: true | ||
} | ||
|
||
} | ||
var file = "Rogue"; | ||
if ($_GET('soft') != null) { | ||
if (softs[$_GET('soft')] != undefined) { | ||
file = $_GET('soft') | ||
//parent.$notif('Loading '+$_GET('soft').replace(/_/g," ")+'.') | ||
}; | ||
}; | ||
// | ||
// DOS FILES | ||
if (softs[file].machine == undefined) { | ||
var dosbox = new Emulator(document.querySelector("#canvas"), | ||
null, | ||
new DosBoxLoader(DosBoxLoader.emulatorJS("js/dosbox-sync.js"), | ||
DosBoxLoader.locateAdditionalEmulatorJS(locateAdditionalFiles), | ||
DosBoxLoader.nativeResolution(640, 400), | ||
DosBoxLoader.mountZip("c", | ||
DosBoxLoader.fetchFile("Software", "softs/" + softs[file].file)), | ||
DosBoxLoader.startExe(softs[file].cmd))); | ||
dosbox.start({ | ||
waitAfterDownloading: false | ||
}); | ||
|
||
function locateAdditionalFiles(filename) { | ||
if (filename === "dosbox.html.mem") { | ||
return "js/dosbox-sync.mem"; | ||
} | ||
return "js/" + filename; | ||
} | ||
|
||
} | ||
// | ||
// PC98 DOS FILES | ||
if(softs[file].machine=='PC98'){ | ||
var dosbox = new Emulator(document.querySelector("#canvas"), | ||
null, | ||
new PC98DosBoxLoader(PC98DosBoxLoader.emulatorJS("js/dosbox-x.js"), | ||
PC98DosBoxLoader.emulatorWASM("js/dosbox-x.wasm"), | ||
PC98DosBoxLoader.locateAdditionalEmulatorJS(locateAdditionalFiles), | ||
PC98DosBoxLoader.nativeResolution(640, 480), | ||
PC98DosBoxLoader.mountZip("c", | ||
PC98DosBoxLoader.fetchFile("Game File", | ||
"softs/"+softs[file].file)), | ||
PC98DosBoxLoader.mountZip("y", | ||
PC98DosBoxLoader.fetchFile("ROM File", | ||
"js/font.zip")), | ||
|
||
PC98DosBoxLoader.startExe(softs[file].cmd))) | ||
dosbox.start({ waitAfterDownloading: true }); | ||
|
||
function locateAdditionalFiles(filename) { | ||
if (filename === "dosbox.html.mem") { | ||
return "js/dosbox-sync.mem"; | ||
} | ||
return "js/"+ filename; | ||
} | ||
// | ||
// PC98 DOS FILES | ||
if (softs[file].machine == 'PC98') { | ||
var dosbox = new Emulator(document.querySelector("#canvas"), | ||
null, | ||
new PC98DosBoxLoader(PC98DosBoxLoader.emulatorJS("js/dosbox-x.js"), | ||
PC98DosBoxLoader.emulatorWASM("js/dosbox-x.wasm"), | ||
PC98DosBoxLoader.locateAdditionalEmulatorJS(locateAdditionalFiles), | ||
PC98DosBoxLoader.nativeResolution(640, 480), | ||
PC98DosBoxLoader.mountZip("c", | ||
PC98DosBoxLoader.fetchFile("Game File", | ||
"softs/" + softs[file].file)), | ||
PC98DosBoxLoader.mountZip("y", | ||
PC98DosBoxLoader.fetchFile("ROM File", | ||
"js/font.zip")), | ||
|
||
PC98DosBoxLoader.startExe(softs[file].cmd))) | ||
dosbox.start({ | ||
waitAfterDownloading: true | ||
}); | ||
|
||
function locateAdditionalFiles(filename) { | ||
if (filename === "dosbox.html.mem") { | ||
return "js/dosbox-sync.mem"; | ||
} | ||
return "js/" + filename; | ||
} | ||
|
||
} | ||
|
||
if (softs[file].pointer==false) { | ||
c=document.getElementById("canvas") | ||
c.style.cursor = "none" | ||
}; | ||
} | ||
|
||
if (softs[file].pointer == false) { | ||
c = document.getElementById("canvas") | ||
c.style.cursor = "none" | ||
}; | ||
|
||
$( document ).ready(function() { | ||
// needed? | ||
}); | ||
$(document).ready(function() { | ||
// needed? | ||
}); | ||
</script> | ||
</body> | ||
</html> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.