Skip to content

Commit

Permalink
fix: webretro v6.5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiteAFancyEmerald committed Nov 29, 2024
1 parent 2ff033d commit e457582
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ debug.log
/src/.shutdown
lib/rammerhead/src/client/hammerhead.min.js
lib/rammerhead/src/client/rammerhead.min.js
views/archive/gfiles/rarch/roms
31 changes: 31 additions & 0 deletions src/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,37 @@ app.register(fastifyStatic, {
decorateReply: false,
});

app.register(fastifyStatic, {
root: fileURLToPath(new URL('../views/archive/gfiles/rarch', import.meta.url)),
prefix: '/serving/',
decorateReply: false,
});

app.register(fastifyStatic, {
root: fileURLToPath(new URL('../views/archive/gfiles/rarch/cores', import.meta.url)),
prefix: '/cores/',
decorateReply: false,
});

app.register(fastifyStatic, {
root: fileURLToPath(new URL('../views/archive/gfiles/rarch/info', import.meta.url)),
prefix: '/info/',
decorateReply: false,
});

app.register(fastifyStatic, {
root: fileURLToPath(new URL('../views/archive/gfiles/rarch/cores', import.meta.url)),
prefix: '/uauth/',
decorateReply: false,
});

// NEVER commit roms due to piracy concerns
app.register(fastifyStatic, {
root: fileURLToPath(new URL('../views/archive/gfiles/rarch/roms', import.meta.url)),
prefix: '/roms/',
decorateReply: false,
});

app.register(fastifyStatic, {
root: fileURLToPath(
new URL(
Expand Down
2 changes: 1 addition & 1 deletion views/archive
Submodule archive updated 1 files
+16 −16 gfiles/rarch/index.html
16 changes: 8 additions & 8 deletions views/assets/json/emu-nav.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
[
{
"name": "Webretro Collection",
"path": "/webretro",
"img": "genesis.png",
"description": "Search through the collection of emulators featured!"
},
{
"name": "GBA Emulator",
"path": "/webretro?core=mgba",
Expand All @@ -18,16 +24,10 @@
"description": "Emulate SNES games! Click to upload a ROM."
},
{
"name": "Genesis Emulator",
"path": "/webretro?core=genesis_plus_gx",
"img": "genesis.png",
"description": "Emulate Genesis games! Click to upload a ROM."
},
{
"name": "N64 Emulator (BROKEN)",
"name": "N64 Emulator",
"path": "/webretro?core=mupen64plus_next",
"img": "nintendo64.png",
"description": "Emulate N64 games! Click to upload a ROM. (Currently Broken)"
"description": "Emulate N64 games! Click to upload a ROM."
},
{
"name": "VibeOS",
Expand Down

0 comments on commit e457582

Please sign in to comment.