mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-28 20:51:51 +01:00
e8f5ab07bd
* Fixed bug in http.c (where realloc *might* choose another address, thanks Dr. Clipper) * Added support to /wbfs/Game Title [GAMEID].wbfs files (thanks oggzee) * Fixed bug in cfg_cleanup when switching partitions * Added BGM class again (for playing background music, requested by dimok) * Added settings for background music again * Fixed bug in MEM2 class (returning an invalid handle when no memory could be allocated, thanks to dimok) * Updated DIP module to OpenDIP (report bugs with this one if you've found them, but report them here: http://github.com/spacemanspiff/odip-plugin) * Added initial code for cios 222 rev5 (THIS DOES NOT WORK YET! DON'T FILE BUGS ON THIS ONE!) * Added fatffs module by Hermes and Waninkoko (THIS DOES NOT WORK YET! DON'T FILE BUGS ON THIS ONE!) * Fixed bug in Settings, which resulted in a crash when the partition was changed. * Added caching for gamelist entries, so switching between different screens/sort options/display modes should be faster * Changed defines in ehc_module, in order to prevent clashes with new defines in rev5
29 lines
555 B
C++
29 lines
555 B
C++
#include "wbfs_ntfs.h"
|
|
#include "fatmounter.h"
|
|
#include "libntfs/ntfs.h"
|
|
|
|
s32 Wbfs_Ntfs::Open()
|
|
{
|
|
strcpy(wbfs_fs_drive, "NTFS:");
|
|
return MountNTFS(lba);
|
|
}
|
|
|
|
int Wbfs_Ntfs::GetFragList(char *filename, _frag_append_t append_fragment, FragList *fs)
|
|
{
|
|
int ret = _NTFS_get_fragments(filename, append_fragment, fs);
|
|
if (ret) {
|
|
return ret;
|
|
}
|
|
|
|
// offset to start of partition
|
|
for (unsigned int j=0; j<fs->num; j++) {
|
|
fs->frag[j].sector += fs_ntfs_sec;
|
|
}
|
|
return ret;
|
|
}
|
|
|
|
bool Wbfs_Ntfs::ShowFreeSpace(void)
|
|
{
|
|
return true;
|
|
}
|