Hi, make_cdn_cia by 3dsguy is a very useful tool, it builds cias from unencrypted files, it can create legit cias easily!
BUT it has a problem, if there are more than 255 content files it wraps around, as in content number 256 will not be 256, it will be 0, it will not look for file 00000100, it will look for 00000000.
I tried to fix the source myself, but I keep having problems.
I fixed just a little, but: when I change the content_id in cia.h from u8 to u16 or u32, is breaks something else in the code.
The code uses 'sizeof', and that takes into account the amount of bytes needed to create the data struct (I believe), but because I increase it from u8 to u16/u32, the size is now increased.
I am not too sure how to fix it...
I put it on github, I have never used it before, but it seems nice.
https://github.com/llakssz/make_cdn_ciaFIX
So if you are able to fix it, please please help, I think for someone clever it should not be too much work at all If someone can fix it I'll buy them an undumped game from eShop (Japan store only, not too expensive, I have about ¥1000 in my account), and send them the CIA
Thank you!
-- if anyone wants to help and needs files to test it with, please send me a PM
--- if magically 10s of people want to help out then... i will decide somehow who gets the reward, it will be who comes first etc/who does it better (i am not buying 10 games!), i hope it won't be difficult to decide, but i doubt there will be a mad rush to do this (exactly why i am offering a reward)
-edit, the person who has make_cdn_cia hosted on github fixed it, but the cia does not build, it gets stuck in set_cia_header()
BUT it has a problem, if there are more than 255 content files it wraps around, as in content number 256 will not be 256, it will be 0, it will not look for file 00000100, it will look for 00000000.
I tried to fix the source myself, but I keep having problems.
I fixed just a little, but: when I change the content_id in cia.h from u8 to u16 or u32, is breaks something else in the code.
The code uses 'sizeof', and that takes into account the amount of bytes needed to create the data struct (I believe), but because I increase it from u8 to u16/u32, the size is now increased.
I am not too sure how to fix it...
I put it on github, I have never used it before, but it seems nice.
https://github.com/llakssz/make_cdn_ciaFIX
So if you are able to fix it, please please help, I think for someone clever it should not be too much work at all If someone can fix it I'll buy them an undumped game from eShop (Japan store only, not too expensive, I have about ¥1000 in my account), and send them the CIA
Thank you!
-- if anyone wants to help and needs files to test it with, please send me a PM
--- if magically 10s of people want to help out then... i will decide somehow who gets the reward, it will be who comes first etc/who does it better (i am not buying 10 games!), i hope it won't be difficult to decide, but i doubt there will be a mad rush to do this (exactly why i am offering a reward)
-edit, the person who has make_cdn_cia hosted on github fixed it, but the cia does not build, it gets stuck in set_cia_header()