miijs 1.5.1 → 1.5.3
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 +8 -2
- 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","");
|