mousex said:He just said you should use .wbfs files instead of .wdf files because the size is nearly the same.
oggzee said:@wiimm:
Oh and another thing I remembered, a while ago i looked at the .wdf format for the possibility of playing it directly from the usb loader, but unfortunately in it's current form it is not suitable because data is not sector aligned. If I recall, the header is about 64 bytes long and then followed immediately by data. I would suggest to increase the header size to either 512 bytes or maybe even to 4096 bytes since this is becoming a popular sector size...
A first idea for WDF version 2:
An additional variable behind the end of header of version 1 describes the alignment factor. This factor can be any number between 1 and 0xffffffff. This extension is fully compatible with version 1 programs. The second new member 'wdf_compatible_version' describes this down compatibility (V1 tools don't care of this).
A for Wii well designed WDF the factor should be 512 or 4096 or 32768.
A USB loader must read the header V2, test if the version is >=2 and the alignment factor is a multiple of 512 (or other needed values).
CODEtypedef struct WDF_Head_t
{
ÂÂÂÂ// magic and version number
ÂÂÂÂchar magic[WDF_MAGIC_SIZE];ÂÂÂÂÂÂÂÂ// WDF_MAGIC, what else!
ÂÂÂÂu32 wdf_version;ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ // WDF_VERSION
ÂÂÂÂ// split file support (not used)
ÂÂÂÂu32 split_file_id;ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ // for plausibility checks
ÂÂÂÂu32 split_file_index;ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ// zero based index ot this file
ÂÂÂÂu32 split_file_num_of;ÂÂÂÂÂÂÂÂÂÂÂÂ // number of split files
ÂÂÂÂ// virtual file infos
ÂÂÂÂu64 file_size;ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ // the size of the virtual file
ÂÂÂÂ// data size of this file
ÂÂÂÂu64 data_size;ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ // the ISO data size in this file
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ // (without header and chunk table)
ÂÂÂÂ// chunks
ÂÂÂÂu32 chunk_split_file;ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ// which spit file contains the chunk table
ÂÂÂÂu32 chunk_n;ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ // total number of data chunks
ÂÂÂÂu64 chunk_off;ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ // the 'MAGIC + chunk_table' file offset
ÂÂÂÂ//---------- here ends the header of WDF version 1 ----------
ÂÂÂÂu32 wdf_compatible_version;ÂÂÂÂÂÂÂÂ// this file is compatible down to version #
ÂÂÂÂu32 align_factor;ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ// all data is aligned with a multiple of #
ÂÂÂÂu8ÂÂbca_data[64];ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ// 64 bytes for BCA data
} __attribute__ ((packed)) WDF_Head_t;
No, you don't wbfs backup manager reads rar files and unpacks scrubs and transfers files to HDD.bowser said:PS: I don't feel like using WiiScrubber and then compressing the ISOs because i'll have to unzip them again before adding them to WBFS.
Wiimm said:(de-)compressing ©ISOs is waste of time because the the needed data is crypt and have nearly the same size as uncompressed. WDF allows direct (random) access. For example, the tool 'wit' can scan or rename ID and title of a WDF very fast -- try this with a cISO.
I asked many times but nobody can tell me, what cIOS is in technical details. And so I had implemented WDF a half year ago. All my backpus are stored as WDF. I think WDF is better than any compressed format. And now we discuss a new extended version of WDF which is direct usable by usb loaders and store all additionally infos needed (like BCA). Oggzee made the first suggestions.
WDF is a more refined format... it really SHOULD become widely supported by USB loaders, IMO.zx3junglist said:mousex said:He just said you should use .wbfs files instead of .wdf files because the size is nearly the same.
you're right, I guess I misread his post. So if I understand, there's really no advantages to implementing WDF support in loaders since we already have .wbfs file support?
I have taken a look into the uloader sources. If extracting from WBFS the block size is the same as "wbfs_sec_sz" (WBFS sector size).oggzee said:4 bytes: CISO
4 bytes: block size (int32) (usually 4MB)
32k-8bytes: byte map of used blocks
DATA BLOCKS
wishmasterf said:Is there any USB-loader which is able to use wdf?
I know about that, but wia will never be used to load games in usb-loader because of the compression, but i think wdf could be used to load games.Richardarkless said:wishmasterf said:Is there any USB-loader which is able to use wdf?
wdf is old, wiimms newest creation is wia (wii iso archive) which makes games even smaller, unfortunately both wdf and wia is only used for backup purposes, not for usb game loading and it never will be