-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
529238a
commit 6a44a70
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,11 +2,16 @@ | |
from base64 import b64encode as b64 | ||
import requests | ||
import sys | ||
import os | ||
|
||
title = 'Coco Battle Royale II' | ||
input = './bin/cocobattleroyale.nes' | ||
output = './html/usa.html' | ||
|
||
|
||
if not os.path.exists('html'): | ||
os.mkdir('html') | ||
|
||
if '--jap' in sys.argv: | ||
title = 'Kokobatoru 2' | ||
input = './bin/kokobatoru.nes' | ||
|
@@ -17,7 +22,7 @@ | |
cdn = 'https://cdn.jsdelivr.net/gh/takahirox/[email protected]/build' | ||
with requests.get(f'{cdn}/{file_name}', stream=True) as download: | ||
file_name = file_name.replace(r'.min.js', '.js') | ||
open(f'./html/{file_name}', "x").write(download.text) | ||
open(f'./html/{file_name}', "w+").write(download.text) | ||
|
||
rom = b64(open(input, "rb").read()).decode() | ||
html = open("./res/index.html", "r").read() | ||
|