makerom: romfs

made fixes by enler platform independent
This commit is contained in:
applestash
2014-09-20 17:29:52 +10:00
parent b4154011a7
commit de12f54762
3 changed files with 14 additions and 8 deletions
+7 -2
View File
@@ -3,8 +3,6 @@
#include "utf.h"
/* This is mainly a FS interface for ROMFS generation */
int fs_InitDir(u16 *path, u32 pathlen, fs_dir *dir);
int fs_ManageDirSlot(fs_dir *dir);
int fs_ManageFileSlot(fs_dir *dir);
@@ -15,6 +13,13 @@ bool fs_EntryIsDirNav(fs_entry *entry);
int fs_AddDir(fs_entry *entry, fs_dir *dir);
int fs_AddFile(fs_entry *entry, fs_dir *dir);
int fs_u16StrLen(fs_romfs_char *str)
{
int i;
for( i = 0; str[i] != 0x0; i++ );
return i;
}
int fs_InitDir(u16 *path, u32 pathlen, fs_dir *dir)
{
dir->name_len = pathlen;