1
0
Fork 0
mirror of https://github.com/marcrobledo/RomPatcher.js.git synced 2025-06-27 16:25:54 +00:00

updated to RomPatcher.JS

* supports UPS format now
* full code overhaul
* shows CRC32, MD5 and SHA-1 before patching
This commit is contained in:
Marc Robledo 2017-07-22 11:58:52 +02:00
parent 52adda0bbe
commit 1c45b0b38a
7 changed files with 601 additions and 280 deletions

View file

@ -1,23 +1,25 @@
<!DOCTYPE html>
<html manifest="ips-patcher.appcache">
<html manifest="manifest.appcache">
<head>
<title>IPS Patcher</title>
<title>ROMPatcher.js</title>
<meta http-equiv="content-Type" content="text/html; charset=UTF-8"/>
<meta name="description" content="This small web app allows you to apply IPS patches to any ROM file."/>
<meta name="keywords" content="ips,patcher,html5,rom,patch,hack,translation"/>
<meta name="description" content="This small web app allows you to apply IPS/UPS patches to your ROM dump files."/>
<meta name="keywords" content="ips,ups,patcher,online,html5,rom,patch,hack,translation"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<link rel="shortcut icon" href="./ips-patcher.png"/>
<link type="text/css" rel="stylesheet" href="./ips-patcher.css" media="all"/>
<script type="text/javascript" src="./ips-patcher.js"></script>
<link rel="shortcut icon" href="./RomPatcher.png"/>
<link type="text/css" rel="stylesheet" href="./RomPatcher.css" media="all"/>
<script type="text/javascript" src="./RomPatcher.js"></script>
<script type="text/javascript" src="./ips.js"></script>
<script type="text/javascript" src="./ups.js"></script>
</head>
<body>
<!-- HEADER -->
<div id="header">
<h1>IPS Patcher</h1>
<h1>RomPatcher.js</h1>
<h2>
by <a href="/" class="author">Marc Robledo</a>
<a href="https://github.com/marcrobledo/ips-patcher/" target="_blank" class="button"><span class="sprite github"></span> See on GitHub</a>
<a href="https://github.com/marcrobledo/RomPatcher.js/" target="_blank" class="button"><span class="sprite github"></span> See on GitHub</a>
<a href="https://www.paypal.me/marcrobledo/5" target="_blank" rel="nofollow" class="donate button"><span class="sprite heart"></span> Donate</a>
</h2>
</div>
@ -26,7 +28,7 @@
<div id="cards">
<div class="card card-notice text-center">
This small web app allows you to apply a IPS patch to your favorite retro games.
This small web app allows you to apply a IPS/UPS patch to your favorite retro games.
</div>
@ -34,23 +36,24 @@
<div class="card card-red">
<h3>Apply IPS patch</h3>
<h3>Apply patch</h3>
<div class="row">
<div class="three columns"><label for="input-file-rom">ROM file:</label></div>
<div class="six columns end">
<input type="file" id="input-file-rom" onchange="openROM(this)"/>
<div class="nine columns">
<input type="file" id="input-file-rom" />
<textarea disabled id="rom-info" rows="3" style="width:100%"></textarea>
</div>
</div>
<div class="row">
<div class="three columns"><label for="input-file-ips">IPS file:</label></div>
<div class="six columns end">
<input type="file" id="input-file-ips" onchange="openIPS(this)"/>
<div class="three columns"><label for="input-file-patch">Patch file (IPS/UPS):</label></div>
<div class="nine columns">
<input type="file" id="input-file-patch" />
</div>
</div>
<div class="buttons">
<button class="with-icon icon9" onclick="ipsFile.applyOnROM(romFile)">Apply IPS patch</button>
<button class="with-icon icon9" onclick="applyPatchFile(patch, romFile)">Apply patch</button>
</div>
</div>
@ -60,23 +63,31 @@
<div class="card card-green">
<h3>Create IPS patch</h3>
<h3>Create patch</h3>
<div class="row">
<div class="three columns"><label for="input-file-rom1">Original ROM:</label></div>
<div class="six columns end">
<input type="file" id="input-file-rom1" onchange="openROM1(this)"/>
<input type="file" id="input-file-rom1" />
</div>
</div>
<div class="row">
<div class="three columns"><label for="input-file-rom2">Modified ROM:</label></div>
<div class="six columns end">
<input type="file" id="input-file-rom2" onchange="openROM2(this)"/>
<input type="file" id="input-file-rom2" />
</div>
</div>
<div class="row">
<div class="three columns">Patch type</div>
<div class="six columns end">
<input type="radio" id="radio-ips" name="patch-type" checked /><label for="radio-ips">IPS</label>
<input type="radio" id="radio-ups" name="patch-type" /><label for="radio-ups">UPS</label>
</div>
</div>
<div class="buttons">
<button class="with-icon icon9" onclick="createIPS(romFile1, romFile2)">Create IPS patch</button>
<button class="with-icon icon9" onclick="createPatchFile()">Create patch</button>
</div>
</div>