From 8146f4860ae9ffdf066dd2b004e473f7fc2f09cc Mon Sep 17 00:00:00 2001 From: Marc Robledo Date: Sat, 2 May 2020 12:10:46 +0200 Subject: [PATCH] patch creation can now create IPS patches if offsets are below format limit, rearranged files internally --- _cache_service_worker.js | 50 +++++++------- index.html | 72 +++++++++++++------- {libs => js}/MarcFile.js | 0 RomPatcher.js => js/RomPatcher.js | 59 +++++------------ crc.js => js/crc.js | 0 aps.js => js/formats/aps.js | 0 bps.js => js/formats/bps.js | 0 ips.js => js/formats/ips.js | 12 ++-- pmsr.js => js/formats/pmsr.js | 0 ppf.js => js/formats/ppf.js | 0 rup.js => js/formats/rup.js | 0 ups.js => js/formats/ups.js | 0 vcdiff.js => js/formats/vcdiff.js | 0 zip.js => js/formats/zip.js | 0 locale.js => js/locale.js | 0 js/worker_apply.js | 83 ++++++++++++++++++++++++ worker_crc.js => js/worker_crc.js | 4 +- worker_create.js => js/worker_create.js | 16 ++--- {libs => js/zip.js}/inflate.js | 0 {libs => js/zip.js}/z-worker.js | 0 {libs => js/zip.js}/zip.js | 0 RomPatcher.css => style/RomPatcher.css | 0 favicon.png => style/favicon.png | Bin logo114.png => style/logo114.png | Bin logo144.png => style/logo144.png | Bin logo192.png => style/logo192.png | Bin worker_apply.js | 65 ------------------- 27 files changed, 190 insertions(+), 171 deletions(-) rename {libs => js}/MarcFile.js (100%) rename RomPatcher.js => js/RomPatcher.js (94%) rename crc.js => js/crc.js (100%) rename aps.js => js/formats/aps.js (100%) rename bps.js => js/formats/bps.js (100%) rename ips.js => js/formats/ips.js (95%) rename pmsr.js => js/formats/pmsr.js (100%) rename ppf.js => js/formats/ppf.js (100%) rename rup.js => js/formats/rup.js (100%) rename ups.js => js/formats/ups.js (100%) rename vcdiff.js => js/formats/vcdiff.js (100%) rename zip.js => js/formats/zip.js (100%) rename locale.js => js/locale.js (100%) create mode 100644 js/worker_apply.js rename worker_crc.js => js/worker_crc.js (81%) rename worker_create.js => js/worker_create.js (89%) rename {libs => js/zip.js}/inflate.js (100%) rename {libs => js/zip.js}/z-worker.js (100%) rename {libs => js/zip.js}/zip.js (100%) rename RomPatcher.css => style/RomPatcher.css (100%) rename favicon.png => style/favicon.png (100%) rename logo114.png => style/logo114.png (100%) rename logo144.png => style/logo144.png (100%) rename logo192.png => style/logo192.png (100%) delete mode 100644 worker_apply.js diff --git a/_cache_service_worker.js b/_cache_service_worker.js index b35185a..1ebe6fb 100644 --- a/_cache_service_worker.js +++ b/_cache_service_worker.js @@ -29,34 +29,34 @@ caches.keys().then(function(cacheNames){ }); var PRECACHE_ID='rom-patcher-js'; -var PRECACHE_VERSION='v8'; +var PRECACHE_VERSION='v9'; var PRECACHE_URLS=[ '/RomPatcher.js/','/RomPatcher.js/index.html', '/RomPatcher.js/manifest.json', - '/RomPatcher.js/favicon.png', - '/RomPatcher.js/logo114.png', - '/RomPatcher.js/logo144.png', - '/RomPatcher.js/logo192.png', - '/RomPatcher.js/RomPatcher.css', - '/RomPatcher.js/RomPatcher.js', - '/RomPatcher.js/locale.js', - '/RomPatcher.js/worker_apply.js', - '/RomPatcher.js/worker_create.js', - '/RomPatcher.js/worker_crc.js', - '/RomPatcher.js/libs/MarcFile.js', - '/RomPatcher.js/libs/zip.js', - '/RomPatcher.js/libs/z-worker.js', - '/RomPatcher.js/libs/inflate.js', - '/RomPatcher.js/crc.js', - '/RomPatcher.js/zip.js', - '/RomPatcher.js/ips.js', - '/RomPatcher.js/ups.js', - '/RomPatcher.js/aps.js', - '/RomPatcher.js/bps.js', - '/RomPatcher.js/rup.js', - '/RomPatcher.js/ppf.js', - '/RomPatcher.js/pmsr.js', - '/RomPatcher.js/vcdiff.js' + '/RomPatcher.js/style/favicon.png', + '/RomPatcher.js/style/logo114.png', + '/RomPatcher.js/style/logo144.png', + '/RomPatcher.js/style/logo192.png', + '/RomPatcher.js/style/RomPatcher.css', + '/RomPatcher.js/js/RomPatcher.js', + '/RomPatcher.js/js/locale.js', + '/RomPatcher.js/js/worker_apply.js', + '/RomPatcher.js/js/worker_create.js', + '/RomPatcher.js/js/worker_crc.js', + '/RomPatcher.js/js/MarcFile.js', + '/RomPatcher.js/js/crc.js', + '/RomPatcher.js/js/zip.js/zip.js', + '/RomPatcher.js/js/zip.js/z-worker.js', + '/RomPatcher.js/js/zip.js/inflate.js', + '/RomPatcher.js/js/formats/zip.js', + '/RomPatcher.js/js/formats/ips.js', + '/RomPatcher.js/js/formats/ups.js', + '/RomPatcher.js/js/formats/aps.js', + '/RomPatcher.js/js/formats/bps.js', + '/RomPatcher.js/js/formats/rup.js', + '/RomPatcher.js/js/formats/ppf.js', + '/RomPatcher.js/js/formats/pmsr.js', + '/RomPatcher.js/js/formats/vcdiff.js' ]; diff --git a/index.html b/index.html index 9ed1db9..613cc1e 100644 --- a/index.html +++ b/index.html @@ -7,30 +7,30 @@ - - + + - - - - - + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
-

Rom Patcher JS

+

Rom Patcher JS

@@ -149,7 +173,7 @@