usbloadergx/source/usbloader/wbfs/wbfs_ntfs.cpp

31 lines
611 B
C++
Raw Normal View History

#include "wbfs_ntfs.h"
#include "fatmounter.h"
#include "libntfs/ntfs.h"
s32 Wbfs_Ntfs::Open()
{
2010-09-24 02:48:03 +02:00
strcpy(wbfs_fs_drive, "NTFS:");
return MountNTFS(lba);
}
2010-09-24 02:48:03 +02:00
int Wbfs_Ntfs::GetFragList(char *filename, _frag_append_t append_fragment, FragList *fs)
{
2010-09-24 02:48:03 +02:00
int ret = _NTFS_get_fragments(filename, append_fragment, fs);
if (ret)
{
return ret;
}
// offset to start of partition
2010-09-24 02:48:03 +02:00
for (unsigned int j = 0; j < fs->num; j++)
{
fs->frag[j].sector += fs_ntfs_sec;
}
return ret;
}
2010-09-24 02:48:03 +02:00
bool Wbfs_Ntfs::ShowFreeSpace(void)
{
return true;
}