// loads all REFRs that place Weapons
records: filesToPatch => {
let records = filesToPatch.map(f => {
return xelib.GetREFRs(f, 'WEAP');
});
return Array.prototype.concat.apply([], records);
},
it pass a filename, yet in xelib.GetREFRs() the argument 0 is passed on to the dll which requires a integer.
when called from https://github.com/z-edit/zedit-example-patcher/blob/c60cdc42987e8547404d4217c1cca802f94c8293/index.js#L77
it pass a filename, yet in xelib.GetREFRs() the argument 0 is passed on to the dll which requires a integer.