mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 00:39:14 +00:00
9c548197c1
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
14 lines
198 B
C
14 lines
198 B
C
#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;
|
|
} |