Skip to content

Commit

Permalink
Merge pull request #1 from DrgnFireYellow/flash
Browse files Browse the repository at this point in the history
Add Flash Support
  • Loading branch information
DrgnFireYellow authored Dec 20, 2023
2 parents f22c42a + e7b43b4 commit 49eb046
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ games/snes/*
games/n64/*
games/megadrive/*
games/gamegear/*
games/flash/*
artwork/*
!*/*/info.txt
!*/info.txt
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@

The Open Source Retro Emulation Frontend for the Web

NOTE: At this time I am unable to create templates for platforms other than megadrive, gamegear, n64, nes, and snes. If you would like to help add more templates, feel free to create a pull request.
NOTE: At this time I am unable to create templates for platforms other than megadrive, gamegear, n64, nes, snes, and flash. If you would like to help add more templates, feel free to create a pull request.


## Requirements

- Python 3.12

## Credits

The template files are modified versions of files from the emulatorjs.org code editor.
The template files for everything except Flash are modified versions of files from the emulatorjs.org code editor.

Flash emulation powered by Ruffle.
=======
## Credits


All other systems use EmulatorJS.
1 change: 1 addition & 0 deletions games/flash/info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Place Flash games here.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import shutil

SYSTEMS = ["nes", "snes", "n64", "megadrive", "gamegear"]
SYSTEMS = ["nes", "snes", "n64", "megadrive", "gamegear", "flash"]
indexcontents = "<body class=\"bg-dark fs-2\"><link href=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN\" crossorigin=\"anonymous\">\n<script src=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js\" integrity=\"sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL\" crossorigin=\"anonymous\"></script>\n<title>EmuWeb Home</title>\n<link rel=\"stylesheet\" href=\"style.css\">\n<ul>\n<li><h1 class=\"text-light m-2\">EmuWeb</h1></li>"

if os.path.exists("output/games"):
Expand Down
16 changes: 16 additions & 0 deletions templates/flash.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<html>
<head>
<title>$GAMEFILE</title>
</head>
<body class="bg-dark">
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="style.css">
<a href="index.html" class="btn btn-primary m-3"><i class="bi bi-arrow-left-short"></i> Go back</a>
<div class="container" style="width:640px;height:480px;max-width:100%">
<embed src="$GAMEFILE">
</div>
</body>
</html>

0 comments on commit 49eb046

Please sign in to comment.