big update

lots cleaned, added cia to cci conv, it
's called a block, separated reading from building, improved ncch keyx
stuff, and basic verbose for keys, elf checking and romfs
This commit is contained in:
applestash
2014-08-26 00:34:28 +10:00
parent c6e98ca578
commit 9c548197c1
66 changed files with 2970 additions and 2551 deletions
+14
View File
@@ -0,0 +1,14 @@
#include "lib.h"
u32 GetCtrBlockSize(u8 flag)
{
return 1 << (flag + 9);
}
u8 GetCtrBlockSizeFlag(u32 size)
{
u8 ret = 0;
for(u32 tmp = size; tmp > 0x200; tmp = tmp >> 1)
ret++;
return ret;
}