mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-04 16:59:02 +00:00
makerom: misc
This commit is contained in:
@@ -315,20 +315,6 @@ void BuildRomfsHeader(romfs_buildctx *ctx)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 GetFileUTableIndex(romfs_buildctx *ctx, fs_file *file)
|
|
||||||
{
|
|
||||||
u32 ret = ctx->u_fileUTableEntry;
|
|
||||||
ctx->u_fileUTableEntry++;
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
u32 GetDirUTableIndex(romfs_buildctx *ctx, fs_dir *dir)
|
|
||||||
{
|
|
||||||
u32 ret = ctx->u_dirUTableEntry;
|
|
||||||
ctx->u_dirUTableEntry++;
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddDirHashKey(romfs_buildctx *ctx, u32 parent, fs_romfs_char* path, u32 dirOffset)
|
void AddDirHashKey(romfs_buildctx *ctx, u32 parent, fs_romfs_char* path, u32 dirOffset)
|
||||||
{
|
{
|
||||||
u32 hash = CalcPathHash(parent,path,0,fs_u16StrLen(path));
|
u32 hash = CalcPathHash(parent,path,0,fs_u16StrLen(path));
|
||||||
@@ -381,10 +367,7 @@ int AddFileToRomfs(romfs_buildctx *ctx, fs_file *file, u32 parent, u32 sibling)
|
|||||||
|
|
||||||
u32_to_u8(entry->parentdiroffset,parent,LE);
|
u32_to_u8(entry->parentdiroffset,parent,LE);
|
||||||
u32_to_u8(entry->siblingoffset,sibling,LE);
|
u32_to_u8(entry->siblingoffset,sibling,LE);
|
||||||
|
|
||||||
//u32 uTableIndex = GetFileUTableIndex(ctx,file);
|
|
||||||
u32_to_u8(entry->weirdoffset,0xffffffff,LE);
|
u32_to_u8(entry->weirdoffset,0xffffffff,LE);
|
||||||
//ctx->fileUTable[uTableIndex] = ctx->u_fileTableLen;
|
|
||||||
|
|
||||||
// Import Name
|
// Import Name
|
||||||
u32_to_u8(entry->namesize,file->name_len,LE);
|
u32_to_u8(entry->namesize,file->name_len,LE);
|
||||||
|
|||||||
Reference in New Issue
Block a user