1
0
Fork 0
mirror of https://github.com/marcrobledo/RomPatcher.js.git synced 2025-06-27 16:25:54 +00:00

version 3.0

This commit is contained in:
Marc Robledo 2024-08-09 19:30:49 +02:00
parent 20a97ae39f
commit f7014075ec
86 changed files with 7587 additions and 238 deletions

View file

@ -1,23 +0,0 @@
/* Rom Patcher JS v20200502 - Marc Robledo 2016-2020 - http://www.marcrobledo.com/license */
self.importScripts(
'./MarcFile.js',
'./crc.js'
);
self.onmessage = event => { // listen for messages from the main thread
var sourceFile=new MarcFile(event.data.u8array);
self.postMessage(
{
crc32:crc32(sourceFile, event.data.startOffset),
md5:md5(sourceFile, event.data.startOffset),
u8array:event.data.u8array
},
[
event.data.u8array.buffer
]
);
};