madden-franchise 2.3.14 → 2.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/deflate.js +2 -2
- package/services/utilService.js +6 -0
package/package.json
CHANGED
package/scripts/deflate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
2
|
const zlib = require('zlib');
|
|
3
3
|
|
|
4
|
-
const filePath = 'D:\\Projects\\Madden 22\\
|
|
5
|
-
const outputPath = 'D:\\Projects\\Madden 22\\
|
|
4
|
+
const filePath = 'D:\\Projects\\Madden 22\\Misc\\FTC\\tuning.frt';
|
|
5
|
+
const outputPath = 'D:\\Projects\\Madden 22\\Misc\\FTC\\modified-Tuning.FTC'
|
|
6
6
|
|
|
7
7
|
const stream = fs.createReadStream(filePath)
|
|
8
8
|
|
package/services/utilService.js
CHANGED
|
@@ -223,4 +223,10 @@ utilService.getReferenceData = function (value) {
|
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
+
utilService.getBinaryReferenceData = function (tableId, rowNumber) {
|
|
227
|
+
const referenceBinary = utilService.dec2bin(tableId, 15);
|
|
228
|
+
const recordIndexBinary = utilService.dec2bin(rowNumber, 17);
|
|
229
|
+
return referenceBinary + recordIndexBinary;
|
|
230
|
+
};
|
|
231
|
+
|
|
226
232
|
module.exports = utilService;
|