1
0
Fork 0
mirror of https://github.com/marcrobledo/RomPatcher.js.git synced 2025-08-26 17:10:55 +00:00

added .mod (PMSR) support

This commit is contained in:
Marc Robledo 2020-03-02 20:28:42 +01:00
parent 30caa1f819
commit 462b2b6b11
8 changed files with 128 additions and 81 deletions

View file

@ -9,6 +9,7 @@ self.importScripts(
'./bps.js',
'./rup.js',
'./ppf.js',
'./pmsr.js',
'./vcdiff.js'
);
@ -32,6 +33,8 @@ self.onmessage = event => { // listen for messages from the main thread
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{