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:
parent
30caa1f819
commit
462b2b6b11
8 changed files with 128 additions and 81 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue