miijs 1.5.1 → 1.5.2
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 +9 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -718,12 +718,18 @@ module.exports={
|
|
|
718
718
|
miiJson.info.birthday=parseInt(temp2.slice(6,8)+temp.slice(0,3),2);
|
|
719
719
|
miiJson.info.birthMonth=parseInt(temp.slice(3,7),2);
|
|
720
720
|
var name="";
|
|
721
|
-
for(var i=0x1A;i<0x2E;i
|
|
721
|
+
for(var i=0x1A;i<0x2E;i+=2){
|
|
722
|
+
if(getBinaryFromAddress(i)==="00000000"){
|
|
723
|
+
break;
|
|
724
|
+
}
|
|
722
725
|
name+=binary.slice(i,i+1);
|
|
723
726
|
}
|
|
724
727
|
miiJson.name=name.replaceAll("\x00","");
|
|
725
728
|
var cname="";
|
|
726
|
-
for(var i=0x48;i<0x5C;i
|
|
729
|
+
for(var i=0x48;i<0x5C;i+=2){
|
|
730
|
+
if(getBinaryFromAddress(i)==="00000000"){
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
727
733
|
cname+=binary.slice(i,i+1);
|
|
728
734
|
}
|
|
729
735
|
miiJson.creatorName=cname.replaceAll("\x00","");
|
|
@@ -799,7 +805,7 @@ module.exports={
|
|
|
799
805
|
temp2=getBinaryFromAddress(0x47);
|
|
800
806
|
miiJson.mole.xPos=parseInt(temp2.slice(6,8)+temp.slice(0,3),2);
|
|
801
807
|
miiJson.mole.yPos=parseInt(temp2.slice(1,6),2);
|
|
802
|
-
fs.unlinkSync("./decryptedTemp.3dMii");
|
|
808
|
+
//fs.unlinkSync("./decryptedTemp.3dMii");
|
|
803
809
|
return miiJson;
|
|
804
810
|
}
|
|
805
811
|
var data=fs.readFileSync(qrPath);
|