mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 00:39:14 +00:00
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:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user