mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-05 00:39:04 +00:00
many small changes
added function to fill memory with random bytes (cleaning some code with that). Removed public build #ifdefs since 3dsguy apparently uploaded the entire source with all "private" things.
This commit is contained in:
+3
-6
@@ -182,14 +182,11 @@ int GetSettingsFromUsrset(cia_settings *ciaset, user_settings *usrset)
|
||||
}
|
||||
|
||||
// Ticket Data
|
||||
u64_to_u8(ciaset->tik.ticketId,u64GetRand(),BE);
|
||||
rndset(ciaset->tik.ticketId,16);
|
||||
if(usrset->cia.randomTitleKey)
|
||||
{
|
||||
u64_to_u8(ciaset->common.titleKey,u64GetRand(),BE);
|
||||
u64_to_u8((ciaset->common.titleKey+8),u64GetRand(),BE);
|
||||
}
|
||||
rndset(ciaset->common.titleKey,16);
|
||||
else
|
||||
memset(ciaset->common.titleKey,0,16);
|
||||
clrmem(ciaset->common.titleKey,16);
|
||||
|
||||
ciaset->tik.formatVersion = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user