Large diffs are not rendered by default.

@@ -55,15 +55,19 @@ const moveSoundFiles = (soundsListOnly, extractAll) => {
return new Promise(r => {
totalFiles++;
const checksum = getFileSize(`./${hero}/Sound Dump/${dir}/${sound}`)
const dupeFile = checksum in checksumCache ? { dupe: true } : undefined
const dupeFile = checksum in checksumCache ? { dupe: { hero: checksumCache[checksum].hero, id: checksumCache[checksum].id } } : undefined

const id = sound.replace('.wem', '')
const oldSoundTS = (existingSoundIDs[id] && existingSoundIDs[id].length) ? { ts: existingSoundIDs[id] } : undefined
const isNew = !existingSoundIDs[id] ? { ts: timestamp } : undefined
soundsList[heroID].push(Object.assign({}, {
id: id,
checksum: checksum
}, dupeFile, isNew, oldSoundTS))
checksumCache[checksum] = true
checksumCache[checksum] = {
hero: heroID,
id
}
if (dupeFile) {
dupeFiles++;
return r()