miijs 1.5.0 → 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.
Files changed (3) hide show
  1. package/index.js +9 -3
  2. package/package.json +1 -1
  3. package/maddie.jpg +0 -0
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miijs",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Read, Edit, Write, and make Special Miis from a Wiimote binary file or 3DS QR Code to a binary file or QR code",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/maddie.jpg DELETED
Binary file