diff --git a/README.md b/README.md
index 22f12f2..619cdf1 100644
--- a/README.md
+++ b/README.md
@@ -8,8 +8,9 @@ A ROM patcher made in HTML5.
* APS
* BPS
* RUP
- * VCDiff (xdelta)
* PPF
+ * Paper Mario Star Rod (.mod)
+ * VCDiff (.xdelta)
* can patch and create patches
* shows ROM CRC32, MD5 and SHA-1 before patching
* can remove headers before patching
diff --git a/RomPatcher.js b/RomPatcher.js
index 3c83daf..73e187d 100644
--- a/RomPatcher.js
+++ b/RomPatcher.js
@@ -1,4 +1,4 @@
-/* Rom Patcher JS v20190531 - Marc Robledo 2016-2019 - http://www.marcrobledo.com/license */
+/* Rom Patcher JS v20200225 - Marc Robledo 2016-2020 - http://www.marcrobledo.com/license */
const TOO_BIG_ROM_SIZE=67108863;
const HEADERS_INFO=[
[/\.nes$/, 16, 1024], //interNES
@@ -199,7 +199,7 @@ addEvent(window,'load',function(){
translatableElements[i].innerHTML=_(translatableElements[i].dataset.localize);
}
- el('row-file-patch').title=_('compatible_formats')+' IPS, UPS, APS, BPS, RUP, PPF, xdelta';
+ el('row-file-patch').title=_('compatible_formats')+' IPS, UPS, APS, BPS, RUP, PPF, MOD (Paper Mario Star Rod), xdelta';
el('input-file-rom').value='';
el('input-file-patch').value='';
@@ -411,6 +411,8 @@ function _readPatchFile(){
patch=parseRUPFile(patchFile);
}else if(header.startsWith(PPF_MAGIC)){
patch=parsePPFFile(patchFile);
+ }else if(header.startsWith(PMSR_MAGIC)){
+ patch=parseMODFile(patchFile);
}else if(header.startsWith(VCDIFF_MAGIC)){
patch=parseVCDIFF(patchFile);
}else{
diff --git a/_cache_service_worker.js b/_cache_service_worker.js
index 54b7c34..bf99faa 100644
--- a/_cache_service_worker.js
+++ b/_cache_service_worker.js
@@ -30,7 +30,7 @@ caches.keys().then(function(cacheNames){
});
var PRECACHE_ID='rom-patcher-js';
-var PRECACHE_VERSION='v7';
+var PRECACHE_VERSION='v7b';
var PRECACHE_URLS=[
'/RomPatcher.js/','/RomPatcher.js/index.html',
'/RomPatcher.js/manifest.json',
@@ -56,6 +56,7 @@ var PRECACHE_URLS=[
'/RomPatcher.js/bps.js',
'/RomPatcher.js/rup.js',
'/RomPatcher.js/ppf.js',
+ '/RomPatcher.js/pmsr.js',
'/RomPatcher.js/vcdiff.js'
];
diff --git a/index.html b/index.html
index d33a217..2acbc5f 100644
--- a/index.html
+++ b/index.html
@@ -28,29 +28,32 @@
+
@@ -91,7 +94,7 @@
@@ -146,7 +149,7 @@