Exemplo n.º 1
0
void GetNewNcchIdForCci(u8 *newTid, u8 *srcTid, u8 index, tmd_hdr *tmdHdr)
{
	u64 titleId = u8_to_u64(srcTid,LE) & 0xffffffffffff;
	if(tmdHdr && index == 7)
		titleId |= (u64)(GetTmdVersion(tmdHdr)) << 48;
	else
		titleId |= (u64)(index+4) << 48;
		
	u64_to_u8(newTid,titleId,LE);
}
Exemplo n.º 2
0
int SetCardInfoNotes(cardinfo_hdr *hdr, cci_settings *set)
{
	u64_to_u8(hdr->notes.mediaSizeUsed,set->romInfo.usedSize,LE);
	u32_to_u8(hdr->notes.unknown,0,LE);
	
	if(set->options.tmdHdr){
		u64_to_u8(hdr->notes.cverTitleId,GetTmdTitleId(set->options.tmdHdr),LE);
		u16_to_u8(hdr->notes.cverTitleId,GetTmdVersion(set->options.tmdHdr),LE);
	}
		
	return 0;
}