[makerom] Fixed "self referencing problems" work around.

This commit is contained in:
jakcron
2015-10-22 01:30:33 +08:00
parent 4dba06b3be
commit dd9538b096
3 changed files with 23 additions and 27 deletions
+2 -2
View File
@@ -308,13 +308,13 @@ void BuildRomfsHeader(romfs_buildctx *ctx)
u32 GetFileHashTableIndex(romfs_buildctx *ctx, u32 parent, fs_romfs_char *path)
{
u32 hash = CalcPathHash(parent, path, 0, fs_u16StrLen(path));
u32 hash = CalcPathHash(parent, path, 0, fs_RomFsStrLen(path));
return hash % ctx->m_fileHashTable;
}
u32 GetDirHashTableIndex(romfs_buildctx *ctx, u32 parent, fs_romfs_char* path)
{
u32 hash = CalcPathHash(parent, path, 0, fs_u16StrLen(path));
u32 hash = CalcPathHash(parent, path, 0, fs_RomFsStrLen(path));
return hash % ctx->m_dirHashTable;
}