mirror of
https://github.com/marcrobledo/RomPatcher.js.git
synced 2025-06-27 16:25:54 +00:00
added zip support
This commit is contained in:
parent
c59a8cbfd0
commit
94529e1a52
19 changed files with 473 additions and 188 deletions
48
index.html
48
index.html
|
@ -9,11 +9,18 @@
|
|||
<link rel="manifest" href="./manifest.json"/>
|
||||
<link rel="shortcut icon" href="./favicon.png" type="image/png" sizes="16x16"/>
|
||||
<link rel="shortcut icon" href="./logo192.png" type="image/png" sizes="192x192"/>
|
||||
<!-- <link rel="apple-touch-icon" href="./logo192.png" sizes="192x192" /> -->
|
||||
<!-- iOS icons -->
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="./logo114.png" />
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="./logo114.png" />
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="./logo144.png" />
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="./logo144.png" />
|
||||
<link rel="apple-touch-icon" href="./logo192.png" />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="./RomPatcher.css" media="all"/>
|
||||
<script type="text/javascript" src="./locale.js"></script>
|
||||
<script type="text/javascript" src="./RomPatcher.js"></script>
|
||||
<script type="text/javascript" src="./MarcFile.js"></script>
|
||||
<script type="text/javascript" src="./libs/MarcFile.js"></script>
|
||||
<script type="text/javascript" src="./zip.js"></script>
|
||||
<script type="text/javascript" src="./crc.js"></script>
|
||||
<script type="text/javascript" src="./ips.js"></script>
|
||||
<script type="text/javascript" src="./ups.js"></script>
|
||||
|
@ -22,11 +29,27 @@
|
|||
<script type="text/javascript" src="./rup.js"></script>
|
||||
<script type="text/javascript" src="./ppf.js"></script>
|
||||
<script type="text/javascript" src="./vcdiff.js"></script>
|
||||
<script type="text/javascript" src="./libs/zip.js"></script>
|
||||
|
||||
<script type="text/javascript"><!--
|
||||
//uncomment the following lines to enable predefined patches, example should be self explanatory
|
||||
// PREDEFINED PATCHES EXAMPLE
|
||||
// uncomment this to enable predefined patches, Rom Patcher JS will fetch patches hosted in your server
|
||||
// format should be self explanatory
|
||||
// you can add validation to patch files that have no validation (like IPS or xdelta) by providing a crc
|
||||
// this object could be also dynamically generated by your server backend
|
||||
/*var PREDEFINED_PATCHES=[
|
||||
{patch:'./_example/SONICDX.xdelta',name:'Sonic 3D Blast Director\'s Cut v1.1',crc:0x44a2ca44},
|
||||
{patch:'./_example/SML2DXv181.ips',name:'Super Mario Land 2 DX v1.81',crc:0xd5ec24e4}
|
||||
//zip includes various patches+every patch file inside specified separately (best method)
|
||||
{patch:'./_example/SML2DXv181.zip#SML2DXv181.ips',name:'Super Mario Land 2 DX v1.8.1 (USA/Europe)',crc:0xd5ec24e4},
|
||||
{patch:'./_example/SML2DXv181.zip#SML2DXv181_jap.ips',name:'Super Mario Land 2 DX v1.8.1 (Japan)',crc:0xa715daf5},
|
||||
|
||||
//zip includes various patches but no patch file inside specified, user will be able to choose the desired patch file in a popup (not recommended, also only a single crc for all patches could be provided)
|
||||
{patch:'./_example/SML2DXv181.zip',name:'Super Mario Land 2 DX v1.8.1 (All regions)'},
|
||||
|
||||
//zip includes a single patch (recommended)
|
||||
{patch:'./_example/SONICDX.zip',name:'Sonic 3D Blast Director\'s Cut v1.1',crc:0x44a2ca44},
|
||||
|
||||
//uncompressed patch (not recommended because of bandwidth purposes)
|
||||
{patch:'./_example/MarvelousATI_EN_v1.07.xdelta',name:'Marvelous (SFC) ENG Translation v1.07',crc:0xcedf3ba7}
|
||||
];*/
|
||||
--></script>
|
||||
</head>
|
||||
|
@ -53,28 +76,28 @@
|
|||
<div class="leftcol">SHA-1:</div><div class="rightcol"><span id="sha1"></span></div>
|
||||
</div>
|
||||
<div class="row" id="row-removeheader" style="display:none">
|
||||
<div class="leftcol"><label for="checkbox-removeheader" data-localize="remove_header">Remove header before patching:</label></div>
|
||||
<div class="leftcol"></div>
|
||||
<div class="rightcol">
|
||||
<input type="checkbox" id="checkbox-removeheader" />
|
||||
<input type="checkbox" id="checkbox-removeheader" /> <label for="checkbox-removeheader" data-localize="remove_header">Remove header before patching</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="row-addheader" style="display:none">
|
||||
<div class="leftcol"><label for="checkbox-addheader" data-localize="add_header">Add temporary header:</label></div>
|
||||
<div class="leftcol"></div>
|
||||
<div class="rightcol">
|
||||
<input type="checkbox" id="checkbox-addheader" /> <label id="headersize" for="checkbox-addheader"></label>
|
||||
<input type="checkbox" id="checkbox-addheader" /> <label for="checkbox-addheader" data-localize="add_header">Add temporary header:</label> <small>(<label id="headersize" for="checkbox-addheader"></label>)</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" id="row-file-patch">
|
||||
<div class="leftcol"><label for="input-file-patch" data-localize="patch_file">Patch file:</label></div>
|
||||
<div class="rightcol">
|
||||
<input type="file" id="input-file-patch" accept=".ips,.ups,.bps,.aps,.rup,.ppf,.xdelta"/>
|
||||
<input type="file" id="input-file-patch" accept=".ips,.ups,.bps,.aps,.rup,.ppf,.xdelta,.zip"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="buttons">
|
||||
<span id="message-apply" class="message"></span>
|
||||
<button id="button-apply" data-localize="apply_patch" class="disabled" disabled onclick="applyPatch(patch, romFile, !/error/.test(el('message-apply').className))">Apply patch</button>
|
||||
<button id="button-apply" data-localize="apply_patch" class="disabled" disabled onclick="applyPatch(patch, romFile, false)">Apply patch</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -120,9 +143,10 @@
|
|||
|
||||
|
||||
|
||||
|
||||
<!-- FOOTER -->
|
||||
<footer>
|
||||
Rom Patcher JS <small>v2.0 RC1f</small> by <a href="/">Marc Robledo</a>
|
||||
Rom Patcher JS <small>v2.0 RC2</small> by <a href="/">Marc Robledo</a>
|
||||
<br />
|
||||
<i class="icon github"></i> <a href="https://github.com/marcrobledo/RomPatcher.js/" target="_blank">See on GitHub</a>
|
||||
<i class="icon heart"></i> <a href="https://www.paypal.me/marcrobledo/5" target="_blank" rel="nofollow">Donate</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue