mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-15 18:12:08 -05:00
fixes and stuff
This commit is contained in:
parent
c105d22d29
commit
0aa868993d
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "1.0.2",
|
||||
"desc": "20 new games, a brand new night time theme, and more fun quotes! (courtesy of astra!!)",
|
||||
"timestamp": "1709824136"
|
||||
"version": "1.0.3",
|
||||
"desc": "added a few games (courtesy of legalize), fixed retro games",
|
||||
"timestamp": "1710095962"
|
||||
}
|
||||
|
@ -29,21 +29,11 @@
|
||||
"image": "cover.svg",
|
||||
"directory": "drift"
|
||||
},
|
||||
{
|
||||
"name": "Dashy Reaper",
|
||||
"image": "cover.svg",
|
||||
"directory": "dashy"
|
||||
},
|
||||
{
|
||||
"name": "Driving Force 4",
|
||||
"image": "cover.svg",
|
||||
"directory": "driving"
|
||||
},
|
||||
{
|
||||
"name": "Bullet Fury",
|
||||
"image": "cover.svg",
|
||||
"directory": "bulletfury"
|
||||
},
|
||||
{
|
||||
"name": "Minecraft Games",
|
||||
"image": "cover.svg",
|
||||
|
@ -18,8 +18,8 @@
|
||||
EJS_core = "nds";
|
||||
EJS_color = "#0064ff";
|
||||
EJS_startOnLoaded = true;
|
||||
EJS_pathtodata = "https://cdn.emulatorjs.org/stable/data/";
|
||||
EJS_pathtodata = "/semag/emulatorjs/data/";
|
||||
EJS_gameUrl = "Animal Crossing - Wild World (USA) (Rev 1).nds";
|
||||
</script>
|
||||
<script src="https://cdn.emulatorjs.org/stable/data/loader.js"></script>
|
||||
<script src="/semag/emulatorjs/data/loader.js"></script>
|
||||
</html>
|
||||
|
@ -18,8 +18,8 @@
|
||||
EJS_core = "n64";
|
||||
EJS_color = "#0064ff";
|
||||
EJS_startOnLoaded = true;
|
||||
EJS_pathtodata = "https://cdn.emulatorjs.org/stable/data/";
|
||||
EJS_pathtodata = "/semag/emulatorjs/data/";
|
||||
EJS_gameUrl = "Banjo-Kazooie (USA) (Rev A).n64";
|
||||
</script>
|
||||
<script src="https://cdn.emulatorjs.org/stable/data/loader.js"></script>
|
||||
<script src="/semag/emulatorjs/data/loader.js"></script>
|
||||
</html>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 8.5 KiB |
Binary file not shown.
@ -1,2 +0,0 @@
|
||||
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
|
||||
<embed src="game.swf" width="100%" height="100%"></embed>
|
@ -18,8 +18,8 @@
|
||||
EJS_core = "n64";
|
||||
EJS_color = "#0064ff";
|
||||
EJS_startOnLoaded = true;
|
||||
EJS_pathtodata = "https://cdn.emulatorjs.org/stable/data/";
|
||||
EJS_pathtodata = "/semag/emulatorjs/data/";
|
||||
EJS_gameUrl = "Donkey Kong 64 (USA).n64";
|
||||
</script>
|
||||
<script src="https://cdn.emulatorjs.org/stable/data/loader.js"></script>
|
||||
<script src="/semag/emulatorjs/data/loader.js"></script>
|
||||
</html>
|
||||
|
@ -18,8 +18,8 @@
|
||||
EJS_core = "n64";
|
||||
EJS_color = "#0064ff";
|
||||
EJS_startOnLoaded = true;
|
||||
EJS_pathtodata = "https://cdn.emulatorjs.org/stable/data/";
|
||||
EJS_pathtodata = "/semag/emulatorjs/data/";
|
||||
EJS_gameUrl = "Doom 64 (USA) (Rev A).n64";
|
||||
</script>
|
||||
<script src="https://cdn.emulatorjs.org/stable/data/loader.js"></script>
|
||||
<script src="/semag/emulatorjs/data/loader.js"></script>
|
||||
</html>
|
||||
|
@ -5,7 +5,6 @@ class EJS_GameManager {
|
||||
this.FS = this.Module.FS;
|
||||
this.functions = {
|
||||
restart: this.Module.cwrap('system_restart', '', []),
|
||||
getStateInfo: this.Module.cwrap('get_state_info', 'string', []), //these names are dumb
|
||||
saveStateInfo: this.Module.cwrap('save_state_info', 'null', []),
|
||||
loadState: this.Module.cwrap('load_state', 'number', ['string', 'number']),
|
||||
screenshot: this.Module.cwrap('cmd_take_screenshot', '', []),
|
||||
@ -31,18 +30,13 @@ class EJS_GameManager {
|
||||
setSlowMotionRatio: this.Module.cwrap('set_sm_ratio', 'null', ['number']),
|
||||
getFrameNum: this.Module.cwrap('get_current_frame_count', 'number', [''])
|
||||
}
|
||||
this.mkdir("/home");
|
||||
this.mkdir("/home/web_user");
|
||||
this.mkdir("/home/web_user/retroarch");
|
||||
this.mkdir("/home/web_user/retroarch/userdata");
|
||||
this.mkdir("/home/web_user/retroarch/userdata/config");
|
||||
this.mkdir("/home/web_user/retroarch/userdata/config/Beetle PSX HW");
|
||||
this.FS.writeFile("/home/web_user/retroarch/userdata/config/Beetle PSX HW/Beetle PSX HW.opt", 'beetle_psx_hw_renderer = "software"\n');
|
||||
this.writeFile("/home/web_user/retroarch/userdata/config/Beetle PSX HW/Beetle PSX HW.opt", 'beetle_psx_hw_renderer = "software"\n');
|
||||
this.writeFile("/home/web_user/retroarch/userdata/config/MAME 2003 (0.78)/MAME 2003 (0.78).opt", 'mame2003_skip_disclaimer = "enabled"\nmame2003_skip_warnings = "enabled"\n');
|
||||
|
||||
this.mkdir("/data");
|
||||
this.mkdir("/data/saves");
|
||||
|
||||
this.FS.writeFile("/home/web_user/retroarch/userdata/retroarch.cfg", this.getRetroArchCfg());
|
||||
this.writeFile("/home/web_user/retroarch/userdata/retroarch.cfg", this.getRetroArchCfg());
|
||||
|
||||
this.FS.mount(IDBFS, {}, '/data/saves');
|
||||
this.FS.syncfs(true, () => {});
|
||||
@ -54,6 +48,54 @@ class EJS_GameManager {
|
||||
this.FS.syncfs(() => {});
|
||||
})
|
||||
}
|
||||
loadExternalFiles() {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
if (this.EJS.config.externalFiles && this.EJS.config.externalFiles.constructor.name === 'Object') {
|
||||
for (const key in this.EJS.config.externalFiles) {
|
||||
await new Promise(done => {
|
||||
this.EJS.downloadFile(this.EJS.config.externalFiles[key], async (res) => {
|
||||
if (res === -1) {
|
||||
if (this.EJS.debug) console.warn("Failed to fetch file from '" + this.EJS.config.externalFiles[key] + "'. Make sure the file exists.");
|
||||
return done();
|
||||
}
|
||||
let path = key;
|
||||
if (key.trim().endsWith("/")) {
|
||||
const invalidCharacters = /[#<$+%>!`&*'|{}/\\?"=@:^\r\n]/ig;
|
||||
let name = this.EJS.config.externalFiles[key].split("/").pop().split("#")[0].split("?")[0].replace(invalidCharacters, "").trim();
|
||||
if (!name) return done();
|
||||
const files = await this.EJS.checkCompression(new Uint8Array(res.data), this.EJS.localization("Decompress Game Assets"));
|
||||
if (files["!!notCompressedData"]) {
|
||||
path += name;
|
||||
} else {
|
||||
for (const k in files) {
|
||||
this.writeFile(path+k, files[k]);
|
||||
}
|
||||
return done();
|
||||
}
|
||||
}
|
||||
try {
|
||||
this.writeFile(path, res.data);
|
||||
} catch(e) {
|
||||
if (this.EJS.debug) console.warn("Failed to write file to '" + path + "'. Make sure there are no conflicting files.");
|
||||
}
|
||||
done();
|
||||
}, null, true, {responseType: "arraybuffer", method: "GET"});
|
||||
})
|
||||
}
|
||||
}
|
||||
resolve();
|
||||
});
|
||||
}
|
||||
writeFile(path, data) {
|
||||
const parts = path.split("/");
|
||||
let current = "/";
|
||||
for (let i=0; i<parts.length-1; i++) {
|
||||
if (!parts[i].trim()) continue;
|
||||
current += parts[i] + "/";
|
||||
this.mkdir(current);
|
||||
}
|
||||
this.FS.writeFile(path, data);
|
||||
}
|
||||
mkdir(path) {
|
||||
try {
|
||||
this.FS.mkdir(path);
|
||||
@ -92,30 +134,8 @@ class EJS_GameManager {
|
||||
this.functions.restart();
|
||||
}
|
||||
getState() {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
const stateInfo = (await this.getStateInfo()).split('|')
|
||||
let state;
|
||||
let size = stateInfo[0] >> 0;
|
||||
if (size > 0) {
|
||||
state = new Uint8Array(size);
|
||||
let start = stateInfo[1] >> 0;
|
||||
for (let i=0; i<size; i++) state[i] = this.Module.getValue(start + i);
|
||||
}
|
||||
resolve(state);
|
||||
})
|
||||
}
|
||||
getStateInfo() {
|
||||
this.functions.saveStateInfo();
|
||||
return new Promise((resolve, reject) => {
|
||||
let a;
|
||||
let b = setInterval(() => {
|
||||
a = this.functions.getStateInfo();
|
||||
if (a) {
|
||||
clearInterval(b);
|
||||
resolve(a);
|
||||
}
|
||||
}, 50)
|
||||
});
|
||||
return this.FS.readFile("/current.state");
|
||||
}
|
||||
loadState(state) {
|
||||
try {
|
||||
@ -132,7 +152,16 @@ class EJS_GameManager {
|
||||
}
|
||||
screenshot() {
|
||||
this.functions.screenshot();
|
||||
return this.FS.readFile('screenshot.png');
|
||||
return new Promise(async resolve => {
|
||||
while (1) {
|
||||
try {
|
||||
FS.stat("/screenshot.png");
|
||||
return resolve(this.FS.readFile("/screenshot.png"));
|
||||
} catch(e) {}
|
||||
|
||||
await new Promise(res => setTimeout(res, 50));
|
||||
}
|
||||
})
|
||||
}
|
||||
quickSave(slot) {
|
||||
if (!slot) slot = 1;
|
||||
|
BIN
semag/emulatorjs/data/cores/a5200-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/a5200-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/a5200-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/a5200-thread-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/a5200-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/a5200-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/beetle_vb-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/beetle_vb-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/beetle_vb-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/beetle_vb-thread-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/beetle_vb-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/beetle_vb-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/desmume-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/desmume-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/desmume-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/desmume-thread-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/desmume-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/desmume-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/desmume2015-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/desmume2015-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/desmume2015-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/desmume2015-thread-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/desmume2015-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/desmume2015-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/fbalpha2012_cps1-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/fbalpha2012_cps1-legacy-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/fbalpha2012_cps1-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/fbalpha2012_cps1-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/fbalpha2012_cps2-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/fbalpha2012_cps2-legacy-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/fbalpha2012_cps2-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/fbalpha2012_cps2-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/fbneo-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/fbneo-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/fbneo-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/fbneo-thread-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/fbneo-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/fbneo-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/fceumm-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/fceumm-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/fceumm-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/fceumm-thread-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/fceumm-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/fceumm-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/gambatte-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/gambatte-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/gambatte-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/gambatte-thread-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/gambatte-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/gambatte-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/gearcoleco-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/gearcoleco-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/gearcoleco-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/gearcoleco-thread-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/gearcoleco-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/gearcoleco-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/genesis_plus_gx-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/genesis_plus_gx-legacy-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/genesis_plus_gx-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/genesis_plus_gx-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/handy-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/handy-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/handy-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/handy-thread-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/handy-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/handy-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mame2003-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mame2003-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mame2003-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mame2003-thread-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mame2003-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mame2003-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mame2003_plus-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mame2003_plus-legacy-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mame2003_plus-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mame2003_plus-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mednafen_ngp-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mednafen_ngp-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mednafen_ngp-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mednafen_ngp-thread-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mednafen_ngp-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mednafen_ngp-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mednafen_pce-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mednafen_pce-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mednafen_pce-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mednafen_pce-thread-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mednafen_pce-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mednafen_pce-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mednafen_pcfx-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mednafen_pcfx-legacy-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mednafen_pcfx-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mednafen_pcfx-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mednafen_psx_hw-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mednafen_psx_hw-legacy-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mednafen_wswan-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mednafen_wswan-legacy-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mednafen_wswan-thread-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mednafen_wswan-thread-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/melonds-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/melonds-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/melonds-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/melonds-thread-legacy-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mgba-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mgba-legacy-wasm.data
Normal file
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mgba-thread-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mgba-thread-legacy-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/mupen64plus_next-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/mupen64plus_next-legacy-wasm.data
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
semag/emulatorjs/data/cores/nestopia-legacy-wasm.data
Normal file
BIN
semag/emulatorjs/data/cores/nestopia-legacy-wasm.data
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user