miijs 1.6.8 → 1.7.0
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/index.js +7 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1113,7 +1113,11 @@ module.exports={
|
|
|
1113
1113
|
qrCode = jsQR(imageData.data, imageData.width, imageData.height).binaryData;
|
|
1114
1114
|
}
|
|
1115
1115
|
else{
|
|
1116
|
-
|
|
1116
|
+
var d=binOrPath.match(/(0|1){1,8}/g);
|
|
1117
|
+
qrCode=[];
|
|
1118
|
+
d.forEach(byte=>{
|
|
1119
|
+
qrCode.push(parseInt(byte,2));
|
|
1120
|
+
});
|
|
1117
1121
|
}
|
|
1118
1122
|
if (qrCode) {
|
|
1119
1123
|
var data = decodeAesCcm(new Uint8Array(qrCode));
|
|
@@ -1180,7 +1184,7 @@ module.exports={
|
|
|
1180
1184
|
miiBin+="000000";
|
|
1181
1185
|
miiBin+=wiiHairCols.indexOf(mii.eyebrows.col).toString(2).padStart(3,"0");
|
|
1182
1186
|
miiBin+=mii.eyebrows.size.toString(2).padStart(4,"0");
|
|
1183
|
-
miiBin+=mii.eyebrows.yPos.toString(2).padStart(5,"0");
|
|
1187
|
+
miiBin+=(mii.eyebrows.yPos+3).toString(2).padStart(5,"0");
|
|
1184
1188
|
miiBin+=mii.eyebrows.distApart.toString(2).padStart(4,"0");
|
|
1185
1189
|
miiBin+=(+getKeyByValue(eyeTable,mii.eyes.type)).toString(2).padStart(6,"0");
|
|
1186
1190
|
miiBin+="00";
|
|
@@ -1397,7 +1401,7 @@ module.exports={
|
|
|
1397
1401
|
studioMii[0xA] = mii.eyebrows.squash;
|
|
1398
1402
|
studioMii[0xC] = mii.eyebrows.rot;
|
|
1399
1403
|
studioMii[0xF] = mii.eyebrows.distApart;
|
|
1400
|
-
studioMii[0x10] = mii.eyebrows.yPos
|
|
1404
|
+
studioMii[0x10] = mii.eyebrows.yPos;
|
|
1401
1405
|
studioMii[0x2C] = tables.noses[mii.nose.type[0]][mii.nose.type[1]];
|
|
1402
1406
|
studioMii[0x2B] = mii.nose.size;
|
|
1403
1407
|
studioMii[0x2D] = mii.nose.yPos;
|