diff --git a/README.md b/README.md
index 59524f1..4f91275 100644
--- a/README.md
+++ b/README.md
@@ -9,9 +9,10 @@ A ROM patcher made in Javascript.
* BPS
* RUP
* PPF
+ * EBP
+ * BSDiff (.bdf, .bspatch)
* Paper Mario Star Rod (.mod)
* VCDiff (.xdelta, .vcdiff)
- * BSDiff (.bdf, .bspatch) (patch only)
* can patch and create patches
* shows ROM CRC32, MD5 and SHA-1 before patching
* can remove headers before patching
diff --git a/_cache_service_worker.js b/_cache_service_worker.js
index b060707..d8413bb 100644
--- a/_cache_service_worker.js
+++ b/_cache_service_worker.js
@@ -6,7 +6,7 @@
*/
var PRECACHE_ID = 'rom-patcher-js';
-var PRECACHE_VERSION = 'v32';
+var PRECACHE_VERSION = 'v321';
var PRECACHE_URLS = [
'/RomPatcher.js/', '/RomPatcher.js/index.html',
'/RomPatcher.js/manifest.json',
@@ -19,19 +19,18 @@ var PRECACHE_URLS = [
'/RomPatcher.js/rom-patcher-js/modules/BinFile.js',
'/RomPatcher.js/rom-patcher-js/modules/HashCalculator.js',
'/RomPatcher.js/rom-patcher-js/modules/RomPatcher.format.ips.js',
- '/RomPatcher.js/rom-patcher-js/modules/RomPatcher.format.bdf.js',
'/RomPatcher.js/rom-patcher-js/modules/RomPatcher.format.bps.js',
'/RomPatcher.js/rom-patcher-js/modules/RomPatcher.format.ups.js',
'/RomPatcher.js/rom-patcher-js/modules/RomPatcher.format.aps_n64.js',
'/RomPatcher.js/rom-patcher-js/modules/RomPatcher.format.aps_gba.js',
'/RomPatcher.js/rom-patcher-js/modules/RomPatcher.format.rup.js',
'/RomPatcher.js/rom-patcher-js/modules/RomPatcher.format.ppf.js',
+ '/RomPatcher.js/rom-patcher-js/modules/RomPatcher.format.bdf.js',
'/RomPatcher.js/rom-patcher-js/modules/RomPatcher.format.pmsr.js',
'/RomPatcher.js/rom-patcher-js/modules/RomPatcher.format.vcdiff.js',
'/RomPatcher.js/rom-patcher-js/modules/zip.js/z-worker.js',
'/RomPatcher.js/rom-patcher-js/modules/zip.js/zip.min.js',
'/RomPatcher.js/rom-patcher-js/modules/zip.js/inflate.js',
- '/RomPatcher.js/rom-patcher-js/modules/bz2/bz2.js',
/* Rom Patcher JS core (web assets) */
'/RomPatcher.js/rom-patcher-js/assets/icon_alert_orange.svg',
'/RomPatcher.js/rom-patcher-js/assets/icon_check_circle_green.svg',
diff --git a/index.html b/index.html
index 001603f..03a4038 100644
--- a/index.html
+++ b/index.html
@@ -83,7 +83,7 @@
@@ -157,7 +157,7 @@
- Rom Patcher JS v3.2 by Marc Robledo
+ Rom Patcher JS v3.2.1 by Marc Robledo
See on GitHub
Donate
diff --git a/rom-patcher-js/RomPatcher.js b/rom-patcher-js/RomPatcher.js
index 1e71e5a..6dc2985 100644
--- a/rom-patcher-js/RomPatcher.js
+++ b/rom-patcher-js/RomPatcher.js
@@ -7,7 +7,7 @@
*
* MIT License
*
-* Copyright (c) 2016-2024 Marc Robledo
+* Copyright (c) 2016-2025 Marc Robledo
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -113,12 +113,12 @@ const RomPatcher = (function () {
patch = RUP.fromFile(patchFile);
} else if (header.startsWith(PPF.MAGIC)) {
patch = PPF.fromFile(patchFile);
+ } else if (header.startsWith(BDF.MAGIC)) {
+ patch = BDF.fromFile(patchFile);
} else if (header.startsWith(PMSR.MAGIC)) {
patch = PMSR.fromFile(patchFile);
} else if (header.startsWith(VCDIFF.MAGIC)) {
patch = VCDIFF.fromFile(patchFile);
- } else if (header.startsWith(BDF.MAGIC)) {
- patch = BDF.fromFile(patchFile);
}
if (patch)
@@ -255,7 +255,6 @@ const RomPatcher = (function () {
} else if (format === 'aps') {
patch = APS.buildFromRoms(originalFile, modifiedFile);
} else if (format === 'rup') {
- if(metadata)
patch = RUP.buildFromRoms(originalFile, modifiedFile, metadata && metadata.Description? metadata.Description : null);
} else if (format === 'ebp') {
patch = IPS.buildFromRoms(originalFile, modifiedFile, metadata);
@@ -407,7 +406,7 @@ if (typeof module !== 'undefined' && module.exports) {
BPS = require('./modules/RomPatcher.format.bps');
RUP = require('./modules/RomPatcher.format.rup');
PPF = require('./modules/RomPatcher.format.ppf');
+ BDF = require('./modules/RomPatcher.format.bdf');
PMSR = require('./modules/RomPatcher.format.pmsr');
VCDIFF = require('./modules/RomPatcher.format.vcdiff');
- BDF = require('./modules/RomPatcher.format.bdf');
}
\ No newline at end of file
diff --git a/rom-patcher-js/RomPatcher.webapp.js b/rom-patcher-js/RomPatcher.webapp.js
index 2f86906..6e2fedd 100644
--- a/rom-patcher-js/RomPatcher.webapp.js
+++ b/rom-patcher-js/RomPatcher.webapp.js
@@ -48,9 +48,9 @@ const RomPatcherWeb = (function () {
'modules/RomPatcher.format.bps.js',
'modules/RomPatcher.format.rup.js',
'modules/RomPatcher.format.ppf.js',
+ 'modules/RomPatcher.format.bdf.js',
'modules/RomPatcher.format.pmsr.js',
'modules/RomPatcher.format.vcdiff.js',
- 'modules/RomPatcher.format.bdf.js',
'modules/zip.js/zip.min.js',
'RomPatcher.js'
];
@@ -1176,7 +1176,7 @@ const ZIPManager = (function (romPatcherWeb) {
const ZIP_MAGIC = '\x50\x4b\x03\x04';
- const FILTER_PATCHES = /\.(ips|ups|bps|aps|rup|ppf|mod|ebp|xdelta|vcdiff|bdf|bspatch)$/i;
+ const FILTER_PATCHES = /\.(ips|ups|bps|aps|rup|ppf|ebp|bdf|bspatch|mod|xdelta|vcdiff)$/i;
//const FILTER_ROMS=/(?