From 5db3c9fa13788200db72e9b500c614adee6f6f85 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Wed, 14 Mar 2012 23:51:41 +0100 Subject: [PATCH] optimize mount settings to noticeably improve speed --- source/Tools/fileop.cpp | 6 +++--- source/filelist.h | 6 ++++++ updates | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/source/Tools/fileop.cpp b/source/Tools/fileop.cpp index 0172d18..f6454b1 100644 --- a/source/Tools/fileop.cpp +++ b/source/Tools/fileop.cpp @@ -183,13 +183,13 @@ static void AddPartition(sec_t sector, int device, int type, int *devnum) if(type == T_FAT) { - if(!fatMount(mount, disc, sector, 2, 128)) + if(!fatMount(mount, disc, sector, 8, 64)) return; fatGetVolumeLabel(mount, part[device][*devnum].name); } else if (type == T_NTFS) { - if(!ntfsMount(mount, disc, sector, 2, 128, NTFS_DEFAULT | NTFS_RECOVER)) + if(!ntfsMount(mount, disc, sector, 8, 64, NTFS_DEFAULT | NTFS_RECOVER)) return; const char *name = ntfsGetVolumeName(mount); @@ -201,7 +201,7 @@ static void AddPartition(sec_t sector, int device, int type, int *devnum) } else if (type == T_EXT2) { - if(!ext2Mount(mount, disc, sector, 2, 128, EXT2_FLAG_64BITS | EXT2_FLAG_JOURNAL_DEV_OK)) + if(!ext2Mount(mount, disc, sector, 8, 64, EXT2_FLAG_64BITS | EXT2_FLAG_JOURNAL_DEV_OK)) return; const char *name = ext2GetVolumeName(mount); diff --git a/source/filelist.h b/source/filelist.h index 298c8bd..0ae8c18 100644 --- a/source/filelist.h +++ b/source/filelist.h @@ -188,6 +188,12 @@ extern const u32 sd_usb_active_png_size; extern const u8 sd_usb_inactive_png[]; extern const u32 sd_usb_inactive_png_size; +extern const u8 dvd_active_png[]; +extern const u32 dvd_active_png_size; + +extern const u8 all_active_png[]; +extern const u32 all_active_png_size; + extern const u8 wii_active_png[]; extern const u32 wii_active_png_size; diff --git a/updates b/updates index 3a2f630..c916d1e 100644 --- a/updates +++ b/updates @@ -11,6 +11,7 @@ - No longer show the HBC if it's installed - changing pages in an empty category no longer crashes - compiled with devkitppc 25-1 and libogc 1.8.10 +- Accessing devices formatted as EXT2/3/4 should now be noticeably faster //rev36: - HBF is now OpenSource!