wit-2.22b/0000755000014500017510000000000012167617055011703 5ustar michaelstaffwit-2.22b/WDF.txt0000644000014500017510000003771412167616640013077 0ustar michaelstaff ******************************************************************************* ******* WDF == Wiimms Disc File == Wii Disc File ******* ******************************************************************************* This file is part of the documentation of 'WIT' (Wiimms ISO Tools). The most current version of this document can be found under: http://wit.wiimm.de/file/WDF.txt ******************************************************************************* ******* What is WDF? ******* ******************************************************************************* This file describes the WDF format. WDF is an abbreviation of either "Wiimms Disc File" or shorter "Wii Disc File". To avoid misunderstandings: WDF will not replace WBFS. It is only a way to shrink ISO images (reduces the disk usage) on other file systems like ext2, FAT or NTFS. And while adding/extracting a WDF image to/from WBFS the transformation can be done on the fly without time costs. Wii ISO images has a size of about 4.4 GiB, but much space is unused and have to be filled with zeros. Some games need less than 100 MiB and that means about 4.3 GiB waste. The linux ext2/3 file system can handle such files very good because it do not allocate disk space for such (zero-)holes. Such files called "sparse files". For me there is no need to store Wii ISO images in the old way filled with zeros. And the handling with large sparse files is not effective and needs always special options like 'ls -s' or 'cp --sparse=always'. Also it costs much time because the holes have to be scanned again. One way is to compress the data. But compressing works only for the holes but not for the crypt data. And random access (needed by the WBFS subsystem) is very difficult for compressed data. The direct support of holes seems to be much better. Because of this all I have defined a new file format, the WDF format. There are some main issues for me: 1.) The WDF format should handles holes effectivly to save disk space. 2.) It should support splitted files because small files can sometimes be handled more effectivly than one whole large files. 3.) There must be a WBFS tool to handle this kind of files. I have already implemented the WDF support in my 'WIT' (Wiimms ISO Tools). The WWT package contains some more tools to handle WDF directly. 4.) Other WBFS manager should support the WDF too. And this means that the implementation must be done by the well known wrapper functions 'rw_sector_callback_t' and 'read_wiidisc_callback_t'. That makes transfering the code very easy. ******************************************************************************* ******* History ******* ******************************************************************************* 2009-10-03, WDF v1 (revision 1) WDF was announced and implemented in Wiimms WBFS Tool (wwt v0.00d). Only the planed internal split file management was never implemented and splitting was handled extennal by break the files into peaces. 2012-09-23, WDF v1 (revision 2) The 4 unused split file information members of the WDF header are now used for compatibility and aligning infos. This makes it easier to accept future compatible versions. But it is still WDF v1. ******************************************************************************* ******* Tests and statistics ******* ******************************************************************************* I have implemented the WDF support in my toolset 'WIT' since 2009 and tested it with many games. In the tests I have converted games from ISO to WDF and back. I done it with the tools 'wit', 'wwt' and 'wdf'. It work well and have not found any errors. Additionally I have testet more than 2 million non ISO files without any failures. This works because WDF may detect holes in any files. For tests I use the script: http://wit.wiimm.de/file/scripts/test-wdf-tools.sh ******************************************************************************* ******* Tools that supports WDF ******* ******************************************************************************* At the moment only the tools from WIT (Wiimms ISO Tools) will support WDFS: - Tool 'wwt' may import WDF files directly to a WBFS and may export discs from WBFS directly to WDF files. - Tool 'wit' converts ISO images from and into WDF files. - Tool 'wdf' general WDF, WIA and CISO conversion tool. It can be used as 'wdf-dump', 'wdf-cat', 'unwdf' -> http://wit.wiimm.de/wdf See http://wit.wiimm.de/ for announcements and discussions. ******************************************************************************* ******* Data structures ******* ******************************************************************************* First a magic is defined to identify a WDF clearly. The magic should never be a possible Wii ISO image identification. Wii ISO images starts with the ID6. And so the WDF magic contains one control character (CTRL-A) within. #define WDF_MAGIC "WII\1DISC" #define WDF_MAGIC_SIZE 8 #define WDF_VERSION 1 A WDF file contains 3 parts (splittet files wil be discussed later): WDF header (struct WDF_Header_t, including WDF_MAGIC) data chunks (pure data, unstructured) WDF_MAGIC (the MAGIC again) WDF chunk table (struct WDF_Chunk_t) The WDF header has an constant size and can be written as dummy and before closing rewritten with the needed data. The chunk data is written 1:1. The chunk control informations are collected an will be written at the end of the file. There are some redundant information. They can be used for plausibility checks. Remember: All data is stored in network byte order (big endian). WDF header: WDF v1 revision 1 ----------------------------- typedef struct WDF_Head_t { // The magic char magic[WDF_MAGIC_SIZE]; // WDF_MAGIC, what else! u32 wdf_version; // WDF_VERSION // Split file support. The values are always [*,0,1] because the // internal split file support was never implemented or needed. u32 split_file_id; // random number, for plausibility checks // (any value, most 0, ignored) u32 split_file_index; // zero based index ot this file // (always 0, ignored) u32 split_file_num_of; // total number of split files // (always 1, ignored) // 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 split file contains the chunk table // (always 0, ignored) u32 chunk_n; // total number of data chunks u64 chunk_off; // the 'MAGIC + chunk_table' file offset } WDF_Head_t; The 'split_*' fields are described below. The 'file_size' contains the total size of the virtual ISO image. The 'data_size' defines the total data size in current split file. The 'chunk_off' data points to the file offset of the table. WDF header: WDF v1 revision 2 & WDF v>1 --------------------------------------- This header is full compatible to revision 1. Only the yet unused split members have now new names. For WDF v1, these members are set to the old split values. But the new definition allow easier support of future extensions typedef struct WDF_Head_t { // the magic char magic[WDF_MAGIC_SIZE]; // WDF_MAGIC, what else! u32 wdf_version; // WDF_VERSION u32 wdf_head_size; // size of version related WDF_Head_t // (WDF v1: ignored) u32 align_factor; // info: all data is aligned with a multiple of # // (WDF v1: always 0, ignored) u32 wdf_compatible; // this file is compatible down to version # // (WDF v1: always 1) // 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_size_factor; // info: all chunk sizes are multiple of # // (WDF v1: always 0, ignored) u32 chunk_n; // total number of data chunks u64 chunk_off; // the 'MAGIC + chunk_table' file offset } WDF_Head_t; WDF chunk info: WDF v1 ---------------------- typedef struct WDF_Chunk_t { u32 split_file_index; // which split file conatins that chunk // (WDF v1: always 0, ignored) u64 file_pos; // the virtual ISO file position u64 data_off; // the data file offset u64 data_size; // the data size } WDF_Chunk_t; WDF chunk info: WDF v>1 (planned) --------------------------------- It is planned, that the 'split_file_index' is removed, if WDF v2 is definied. typedef struct WDF_Chunk_t { u64 file_pos; // the virtual ISO file position u64 data_off; // the data file offset u64 data_size; // the data size } WDF_Chunk_t; The chunk table (WDF_Chunk_t) is always sorted by the iso_pos_* in ascending order so that a lookup can be done by a binary search. There is always a chunk at virtual ISO file position #0 an one chunk that reaches the end of the virtual file. If there are holes at the beginning or end of the data than chunks with data_size==0 bytes have to be insertet. This is an example dump of the game "Animal Crossing". The dump was created with the tool 'wdf-dump' which is part of 'wit' (Wiimms ISO Tool). | # wdf-dump --chunk pool/wdf/animal.wdf | | wdf-dump v0.02b r191M - Dirk Clemens - 2009-10-07 | | | WDF dump of file pool/wdf/animal.wdf | | Header: | | Magic : "WII.DISC" 57 49 49 01 44 49 53 43 | wdf_version : 1/hex = 1 | split_file_id : 0/hex = 0 | split_file_index : 0/hex = 0 | split_file_num_of : 1/hex = 1 | file_size : 118240000/hex = 4699979776 | - WDF file size : 1557cd40/hex = 358075712 7.62% | data_size : 1557cbcc/hex = 358075340 | chunk_split_file : 0/hex = 0 | chunk_n : b/hex = 11 | chunk_off : 1557cc04/hex = 358075396 | | File Parts: | | Header : 0 .. 38 [ 38] | Data : 38 .. 1557cc04 [ 1557cbcc] | Chunk-Magic : 1557cc04 .. 1557cc0c [ 8] | Chunk-Table : 1557cc0c .. 1557cd40 [ 134] | | Chunk Table: | | idx WDF file address data len virtual ISO address hole size | ------------------------------------------------------------------------ | 0. 38.. 6c 34 0.. 34 3ffcc | 1. 6c.. 98 2c 40000.. 4002c dfd4 | 2. 98.. b8 20 4e000.. 4e020 1de0 | 3. b8.. 1164 10ac 4fe00.. 50eac 7154 | 4. 1164.. 1880 71c 58000.. 5871c 178e4 | 5. 1880.. 191880 190000 70000.. 200000 f600000 | 6. 191880.. 19272c eac f800000.. f800eac 7154 | 7. 19272c.. 19cc04 a4d8 f808000.. f8124d8 db28 | 8. 19cc04.. 97cc04 7e0000 f820000.. 10000000 f2800000 | 9. 97cc04.. 1557cc04 14c00000 102800000.. 117400000 e40000 | 10. 1557cc04.. 1557cc04 0 118240000.. 118240000 0 | ******************************************************************************* ******* Split files ******* ******************************************************************************* There is only a small need for splitted files, e.g. when transporting a large image via a FAT file system. The WDF splits the data anyway in chunks. So it is only a little step to devide the chunks into more than 1 file. --------------------- Parameter overview: --------------------- WDF_Head_t: split_file_id : any (random) value, but same in all files. split_file_index : unique index [0..] split_file_num_of : Total number of split files [1..] chunk_split_file : Index of file which contais the chunk table. WDF_Chunk_t split_file_index : Index of split fle where the chunk data resides. --------------------- Here are the rules: --------------------- * Each file of the (splitted) set contains the same header at the beginning of the file. The only difference in the headers is the 'split_file_index', a zero based index. * 'split_file_num_of' gives the numer of files in the set. 'split_file_index' is always smaller than 'split_file_num_of'. * 'split_file_id' may have any (random) value but must be same in all files. * The chunk table is stored in the split file with index 'chunk_split_file'. * Each chunk has a parameter called 'split_file_index' which declares in which file the chunk data resides. * The filename of split file #0 is the base name. The filenames of all other split files have the identical base name plus '.' plus an decimal index taken from 'split_file_index' without any padding. Example: file #0: my_game.wdf file #1: my_game.wdf.1 file #2: my_game.wdf.2 ... file #9: my_game.wdf.9 file #10: my_game.wdf.10 --------------------- Style guide: --------------------- Here are some rules how to write a good splitted WDF. Assume that the user has set a limit for each file. No file schould be larger than this limit. * Open the first file (index #0) and write a dummy header to that file. * While writing chunks check if the limit will be exceeded. If so: - Split the current chunk into 2 chunks: The first chunks contains enough data to reach the limit. The second chunk takes the remaining data. - Open the next split file with a filename described above and write a dummy header to that file. * If all data is written then: - Calculate the chunk tables size including the magic. If the data will execeed the limit open a new split file and write the dummy header. - Write the chunk table to the current file (remember: network byte order). - Calculate the header and write it to all data files. Don't forget the individual 'split_file_index' and the network byte order. - Close all files. REMARK: The WIT tools supports splitted WDF files *not* following this rules. The files are splitted hard by breaking the files into peaces. This is done by the file layer so that the WDF layer don't see the split. ******************************************************************************* ******* Example implementation ******* ******************************************************************************* The example implementation is part of 'WIT' (Wiimms ISO Tools): see: http://wit.wiimm.de/file/src/lib-wdf.c and: http://wit.wiimm.de/file/src/lib-wdf.h ******************************************************************************* ******* END ******* ******************************************************************************* wit-2.22b/gpl-2.0.txt0000644000014500017510000004310312167616640013523 0ustar michaelstaff GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. wit-2.22b/gen-template.sh0000644000014500017510000000175312167616640014626 0ustar michaelstaff#!/usr/bin/env bash #set -v rm -f templates/*.bak templates/*.tmp mkdir -p doc list="$*" [[ $list = "" ]] && list="$(/bin/ls templates/)" awkprog=' /@@MODULE\(.*\)@@/ { gsub(/@@MODULE\(/,"templates/module/"); gsub(/\)@@/,""); system("cat " $0); next } /@@EXEC\(.*\)@@/ { gsub(/@@EXEC\(/,""); gsub(/\)@@\r?/,""); system($0); #print; next } { print $0 } ' CRLF=0 uname -s | grep -q CYGWIN && CRLF=1 for fname in $list do src="setup/$fname" [[ -f $src ]] || src="templates/$fname" if [[ -f "$src" ]] then dest="doc/$fname" ext="${dest##*.}" #[[ $ext == edit-list ]] && continue [[ $ext = "sh" || $ext = "bat" || $ext = "h" ]] && dest="$fname" [[ $fname = "INSTALL.txt" ]] && dest="$fname" #echo "|$src|$dest|" if ((CRLF)) && [[ $ext = bat || $ext = txt ]] then awk "$awkprog" $src | sed -f templates.sed | sed 's/$/\r/' >$dest else awk "$awkprog" $src | sed -f templates.sed >$dest fi [[ $ext = "sh" ]] && chmod a+x "$fname" fi done exit 0 wit-2.22b/gen-text-file.sh0000755000014500017510000000237712167616640014722 0ustar michaelstaff#!/usr/bin/env bash dir="$1" shift if [[ ! -d $dir ]] then echo "Directory not found: $dir" >&2 exit 1 fi function gen_text() { local varname="$1" local src="$2" printf "\nconst char %s[] =\n{\n" "$varname" if [[ $varname =~ _cr$ ]] then grep -v '^~' "$src" \ | sed 's/\\/\\\\/g; s/"/\\"/g; s/^/ "/; s/#FF#/#\\f/; s/$/\\r\\n"/' else grep -v '^~' "$src" \ | sed 's/\\/\\\\/g; s/"/\\"/g; s/^/ "/; s/#FF#/#\\f/; s/$/\\n"/' fi printf "};\n\n" } for src in "$@" do src="${src##*/}" name="${src%.*}" name="text_${name//[-.]/_}" cname="$( echo "SZS_${name}_INC" | awk '{print toupper($0)}' )" #echo "$name : $src -> $dest" { printf "\n#ifndef %s\n#define %s 1\n" "$cname" "$cname" if [[ -f "$dir/$src" ]] then gen_text "$name" "$dir/$src" echo "$src: $dir/$src" >"$src.d" elif [[ -d "$dir/$src" ]] then printf '%s:' "$src" >"$src.d" for inc in "$dir/$src"/*.inc do name="${inc##*/}" name="${name%.*}" name="text_${name//[-.]/_}" gen_text "$name" "$inc" printf ' \\\n\t%s' "$inc" >>"$src.d" done printf '\n' >>"$src.d" else printf '\n!! Text not found: %s\n' "$dir/$src" exit 1 fi printf "#endif // %s\n\n" "$cname" } >"$src" done wit-2.22b/Makefile0000644000014500017510000006650512167616640013356 0ustar michaelstaff ##################################################################### ## __ __ _ ___________ ## ## \ \ / /| |____ ____| ## ## \ \ / / | | | | ## ## \ \ /\ / / | | | | ## ## \ \/ \/ / | | | | ## ## \ /\ / | | | | ## ## \/ \/ |_| |_| ## ## ## ## Wiimms ISO Tools ## ## http://wit.wiimm.de/ ## ## ## ##################################################################### ## ## ## This file is part of the WIT project. ## ## Visit http://wit.wiimm.de/ for project details and sources. ## ## ## ## Copyright (c) 2009-2013 by Dirk Clemens ## ## ## ##################################################################### #---------------------------------------------------------------- # make manual: http://www.gnu.org/software/make/manual/make.html #---------------------------------------------------------------- #------------------------------------------------------------------------------- # global settings #SHELL = /bin/bash SHELL = /usr/bin/env bash AUTHOR = Dirk Clemens TOOLSET_SHORT = WIT TOOLSET_LONG = Wiimms ISO Tools WIT_SHORT = wit WIT_LONG = Wiimms ISO Tool WWT_SHORT = wwt WWT_LONG = Wiimms WBFS Tool WDF_SHORT = wdf WDF_LONG = Wiimms WDF Tool WFUSE_SHORT = wfuse WFUSE_LONG = Wiimms FUSE Tool VERSION_NUM = 2.22b BETA_VERSION = 0 # 0:off -1:"beta" >0:"beta#" URI_HOME = http://wit.wiimm.de/ URI_DOWNLOAD = http://wit.wiimm.de/download URI_FILE = http://wit.wiimm.de/file ifeq ($(BETA_VERSION),0) URI_REPOS = http://opensvn.wiimm.de/wii/trunk/wiimms-iso-tools/ URI_VIEWVC = http://wit.wiimm.de/r/viewvc else URI_REPOS = http://opensvn.wiimm.de/wii/branches/public/wiimms-iso-tools/ URI_VIEWVC = http://wit.wiimm.de/r/viewvc-beta endif URI_WDF = http://wit.wiimm.de/r/wdf URI_CISO = http://wit.wiimm.de/r/ciso URI_QTWITGUI = http://wit.wiimm.de/r/qtwitgui URI_WIIBAFU = http://wit.wiimm.de/r/wiibafu #URI_WCDWM = http://wit.wiimm.de/r/wcdwm #URI_WIIJMANAGER = http://wit.wiimm.de/r/wiijman URI_MACWITGUI = http://wit.wiimm.de/r/mac-witgui URI_GBATEMP = http://gbatemp.net/index.php?showtopic=182236\#entry2286365 URI_DOWNLOAD_I386 = $(URI_DOWNLOAD)/$(DISTRIB_I386) URI_DOWNLOAD_X86_64 = $(URI_DOWNLOAD)/$(DISTRIB_X86_64) URI_DOWNLOAD_MAC = $(URI_DOWNLOAD)/$(DISTRIB_MAC) URI_DOWNLOAD_CYGWIN = $(URI_DOWNLOAD)/$(DISTRIB_CYGWIN) URI_TITLES = http://gametdb.com/titles.txt DOWNLOAD_DIR = /cygdrive/n/www/wit.wiimm.de/download DUMMY := $(shell $(SHELL) ./setup.sh) include Makefile.setup # format for logging messages, $1=job, $2=object, $3=more info LOGFORMAT := *** %7s %-17s %s\n #------------------------------------------------------------------------------- # version+beta settings ifeq ($(BETA_VERSION),0) BETA_SUFFIX := else ifeq ($(BETA_VERSION),-1) BETA_SUFFIX := .beta else BETA_SUFFIX := .beta$(BETA_VERSION) endif VERSION := $(VERSION_NUM)$(BETA_SUFFIX) #------------------------------------------------------------------------------- # compiler settings PRE ?= CC = $(PRE)gcc CPP = $(PRE)g++ STRIP = $(PRE)strip #------------------------------------------------------------------------------- # files DIR_LIST = RM_FILES = *.{a,o,d,tmp,bak,exe} */*.{tmp,bak} */*/*.{tmp,bak} RM_FILES2 = *.{iso,ciso,wdf,wbfs} templates.sed MODE_FILE = ./_mode.flag MODE = $(shell test -s $(MODE_FILE) && cat $(MODE_FILE)) RM_FILES += $(MODE_FILE) # wbfs: files / size in GiB of WBFS partition / number of ISO files to copy WBFS_FILE ?= a.wbfs WBFS_FILES ?= $(WBFS_FILE) b.wbfs c.wbfs d.wbfs WBFS_SIZE ?= 20 WBFS_COUNT ?= 4 #------------------------------------------------------------------------------- # tools MAIN_TOOLS := wit wwt wdf TEST_TOOLS := wtest EXTRA_TOOLS := ifeq ($(HAVE_FUSE),1) MAIN_TOOLS += wfuse else EXTRA_TOOLS := wfuse endif ALL_TOOLS := $(sort $(MAIN_TOOLS) $(TEST_TOOLS)) ALL_TOOLS_X := $(sort $(MAIN_TOOLS) $(TEST_TOOLS) $(EXTRA_TOOLS)) HELPER_TOOLS := gen-ui WDF_TEST_LINKS := WdfCat UnWdf WdfCmp WdfDump Ciso CisoCat UnCiso Wbi WDF_LINKS := wdf-cat wdf-dump RM_FILES += $(ALL_TOOLS_X) $(HELPER_TOOLS) $(WDF_LINKS) $(WDF_TEST_LINKS) #------------------------------------------------------------------------------- # tool dependent options and objects ifeq ($(STATIC),1) OPT_STATIC := -static else OPT_STATIC := endif #--------------- TOPT_wit := $(OPT_STATIC) TOPT_wwt := $(OPT_STATIC) TOPT_wdf := $(OPT_STATIC) TOPT_wfuse := -lfuse -lpthread -ldl #TOPT_ALL := $(TOPT_wit) $(TOPT_wwt) $(TOPT_wdf) $(TOPT_wfuse) #--------------- TOBJ_wit := wit-mix.o TOBJ_wwt := TOBJ_wdf := TOBJ_wfuse := TOBJ_ALL := $(TOBJ_wit) $(TOBJ_wwt) $(TOBJ_wdf) $(TOBJ_wfuse) #------------------------------------------------------------------------------- # sub libs # libbz2 LIBBZ2_SRC = $(shell echo src/libbz2/*.c) LIBBZ2_OBJ = $(patsubst %.c,%.o,$(LIBBZ2_SRC)) # lib summary LIB_LIST += libbz2 LIB_OBJECTS += $(LIBBZ2_OBJ) RM_FILES += $(foreach l,$(LIB_LIST),src/$(l)/*.{d,o}) #------------------------------------------------------------------------------- # source files UI_FILES = ui.def UI_FILES += $(patsubst %,ui-%.c,$(MAIN_TOOLS) $(EXTRA_TOOLS)) UI_FILES += $(patsubst %,ui-%.h,$(MAIN_TOOLS) $(EXTRA_TOOLS)) UI_TABS = $(patsubst %,tab-%.inc,$(MAIN_TOOLS) $(EXTRA_TOOLS)) SETUP_DIR = ./setup SETUP_INFO = INSTALL.txt SETUP_FILES = version.h install.sh cygwin-copy.sh wit.def \ $(SETUP_INFO) $(CYGWIN_SCRIPTS) DIR_LIST += $(SETUP_DIR) RM_FILES2 += $(SETUP_FILES) TEXT_DIR = ./text-files TEXT_FILES = logo.inc ui-head.inc DIR_LIST += $(TEXT_DIR) RM_FILES2 += $(TEXT_FILES) #------------------------------------------------------------------------------- # object files # objects of tools MAIN_TOOLS_OBJ := $(patsubst %,%.o,$(MAIN_TOOLS) $(EXTRA_TOOLS)) OTHER_TOOLS_OBJ := $(patsubst %,%.o,$(TEST_TOOLS) $(HELPER_TOOLS)) # other objects WIT_O := debug.o lib-std.o lib-file.o lib-sf.o \ lib-bzip2.o lib-lzma.o \ lib-wdf.o lib-wia.o lib-ciso.o \ ui.o iso-interface.o wbfs-interface.o patch.o \ titles.o match-pattern.o dclib-utf8.o \ sha1dgst.o sha1_one.o LIBWBFS_O := tools.o file-formats.o libwbfs.o wiidisc.o cert.o rijndael.o LZMA_O := LzmaDec.o LzmaEnc.o LzFind.o Lzma2Dec.o Lzma2Enc.o ifeq ($(SYSTEM),cygwin) WIT_O += winapi.o endif # object groups UI_OBJECTS := $(sort $(MAIN_TOOLS_OBJ)) C_OBJECTS := $(sort $(OTHER_TOOLS_OBJ) $(WIT_O) $(LIBWBFS_O) $(LZMA_O) $(TOBJ_ALL)) ASM_OBJECTS := ssl-asm.o # all objects + sources ALL_OBJECTS = $(sort $(WIT_O) $(LIBWBFS_O) $(LZMA_O) $(ASM_OBJECTS) $(LIB_OBJECTS)) ALL_SOURCES = $(patsubst %.o,%.c,$(UI_OBJECTS) $(C_OBJECTS) $(ASM_OBJECTS)) #------------------------------------------------------------------------------- SHARE_PATH = $(INSTALL_PATH)/share/wit INSTALL_SCRIPTS = install.sh load-titles.sh RM_FILES += $(INSTALL_SCRIPTS) SCRIPTS = ./scripts TEMPLATES = ./templates MODULES = $(TEMPLATES)/module GEN_TEMPLATE = ./gen-template.sh GEN_TEXT_FILE = ./gen-text-file.sh UI = ./src/ui DIR_LIST += $(SCRIPTS) $(TEMPLATES) $(MODULES) VPATH += src src/libwbfs src/lzma src/crypto $(UI) work DIR_LIST += src src/libwbfs src/lzma src/crypto $(UI) work DEFINES1 += -DLARGE_FILES -D_FILE_OFFSET_BITS=64 DEFINES1 += -DWIT # compile wit tools (for shared sources (e.g. libwbfs)) DEFINES1 += -DDEBUG_ASSERT # enable ASSERTions in release version too DEFINES1 += -DEXTENDED_ERRORS=1 # enable extended error messages (function,line,file) DEFINES1 += -D_7ZIP_ST=1 # disable 7zip multi threading DEFINES1 += -D_LZMA_PROB32=1 # LZMA option DEFINES = $(strip $(DEFINES1) $(MODE) $(XDEF)) CFLAGS += -fomit-frame-pointer -fno-strict-aliasing -funroll-loops CFLAGS += -Wall -Wno-parentheses -Wno-unused-function CFLAGS += -O3 -Isrc/libwbfs -Isrc/lzma -Isrc -I$(UI) -I. -Iwork ifeq ($(SYSTEM),mac) CFLAGS += -I/usr/local/include endif CFLAGS += $(XFLAGS) CFLAGS := $(strip $(CFLAGS)) DEPFLAGS += -MMD LDFLAGS += -static-libgcc LDFLAGS := $(strip $(LDFLAGS)) LIBS += $(XLIBS) DISTRIB_RM = ./wit-v$(VERSION)-r DISTRIB_BASE = wit-v$(VERSION)-r$(REVISION_NEXT) DISTRIB_PATH = ./$(DISTRIB_BASE)-$(SYSTEM) DISTRIB_I386 = $(DISTRIB_BASE)-i386.tar.gz DISTRIB_X86_64 = $(DISTRIB_BASE)-x86_64.tar.gz DISTRIB_MAC = $(DISTRIB_BASE)-mac.tar.gz DISTRIB_CYGWIN = $(DISTRIB_BASE)-cygwin.zip DISTRIB_FILES = gpl-2.0.txt $(INSTALL_SCRIPTS) $(SETUP_INFO) DOC_FILES = doc/*.txt IGNORE_DOC_FILES= HISTORY-v*.txt TITLE_FILES = titles.txt $(patsubst %,titles-%.txt,$(LANGUAGES)) LANGUAGES = de es fr it ja ko nl pt ru zhcn zhtw BIN_FILES = $(MAIN_TOOLS) $(EXTRA_TOOLS) SHARE_FILES = $(TITLE_FILES) system-menu.txt magic.txt CYGWIN_DIR = /usr/bin CYGWIN_TOOLS = bash cp diff env grep mkdir mv realpath regtool rm stat tr wget CYGWIN_SCRIPTS = load-titles.sh load-titles.bat \ windows-install.sh windows-uninstall.sh CYGWIN_INSTALLER= $(SETUP_DIR)/windows-install.exe WIN_INSTALL_PATH= Wiimm/WIT DIR_LIST_BIN = $(SCRIPTS) bin DIR_LIST += $(DIR_LIST_BIN) DIR_LIST += share work pool makefiles-local edit-list #------------------------------------------------------------------------------- # sub projects SUB_PROJECTS += test-libwbfs RM_FILES += $(foreach p,$(SUB_PROJECTS),$(p)/*.{d,o} $(p)/$(p)) # ############################################################################### # default rule default_rule: all @echo "HINT: try 'make help'" # include this behind the default rule -include $(ALL_SOURCES:.c=.d) # ############################################################################### # general rules $(ALL_TOOLS_X): %: %.o $(ALL_OBJECTS) $(TOBJ_ALL) Makefile | $(HELPER_TOOLS) @printf "$(LOGFORMAT)" tool "$@" "$(MODE) $(TOPT_$@) $(TOBJ_$@)" @$(CC) $(CFLAGS) $(DEFINES) $(LDFLAGS) $@.o \ $(ALL_OBJECTS) $(TOBJ_$@) $(LIBS) $(TOPT_$@) -o $@ @if test -f $@.exe; then $(STRIP) $@.exe; else $(STRIP) $@; fi @mkdir -p bin/$(SYSTEM) bin/$(SYSTEM)/debug @if test -s $(MODE_FILE) && grep -Fq -e -DDEBUG $(MODE_FILE); \ then cp -p $@ bin/$(SYSTEM)/debug/; \ else cp -p $@ bin/; cp -p $@ bin/$(SYSTEM)/; fi #-------------------------- $(HELPER_TOOLS): %: %.o $(ALL_OBJECTS) $(UI_TABS) Makefile @printf "$(LOGFORMAT)" helper "$@ $(TOBJ_$@)" "$(MODE)" @$(CC) $(CFLAGS) $(DEFINES) $(LDFLAGS) $@.o \ $(ALL_OBJECTS) $(TOBJ_$@) $(LIBS) -o $@ #-------------------------- $(WDF_LINKS): wdf @printf "$(LOGFORMAT)" "link" "wdf -> $@" "" @ln -f wdf "$@" #-------------------------- $(UI_OBJECTS): %.o: %.c ui-%.c ui-%.h version.h Makefile @printf "$(LOGFORMAT)" +object "$@" "$(MODE)" @$(CC) $(CFLAGS) $(DEPFLAGS) $(DEFINES) -c $< -o $@ #-------------------------- $(C_OBJECTS): %.o: %.c version.h Makefile $(TEXT_FILES) @printf "$(LOGFORMAT)" object "$@" "$(MODE)" @$(CC) $(CFLAGS) $(DEPFLAGS) $(DEFINES) -c $< -o $@ #-------------------------- $(ASM_OBJECTS): %.o: %.S Makefile @printf "$(LOGFORMAT)" asm "$@" "$(MODE)" @$(CC) $(CFLAGS) $(DEPFLAGS) $(DEFINES) -c $< -o $@ #-------------------------- $(SETUP_FILES): templates.sed $(SETUP_DIR)/$@ @printf "$(LOGFORMAT)" create "$@" "" @chmod 775 $(GEN_TEMPLATE) @$(GEN_TEMPLATE) $@ #-------------------------- $(TEXT_FILES): $(GEN_TEXT_FILE) $(TEXT_DIR)/$@ @printf "$(LOGFORMAT)" text "$@" "" @chmod 775 $(GEN_TEXT_FILE) @$(GEN_TEXT_FILE) $(TEXT_DIR) $@ #-------------------------- $(UI_FILES): gen-ui.c tab-ui.c ui.h $(UI_TABS) | gen-ui @printf "$(LOGFORMAT)" run gen-ui "" @./gen-ui .PHONY : ui ui : gen-ui @printf "$(LOGFORMAT)" run gen-ui "" @./gen-ui # ############################################################################### # lib specific rules $(LIBBZ2_OBJ): %.o: %.c Makefile @printf "$(LOGFORMAT)" object "$(subst src/libbz2/,,$@)" "$(MODE) [libbz2]" @$(CC) $(CFLAGS) $(DEPFLAGS) $(DEFINES) -c $< -o $@ # ############################################################################### # specific rules in alphabetic order .PHONY : all all: $(HELPER_TOOLS) $(ALL_TOOLS) $(WDF_LINKS) $(INSTALL_SCRIPTS) $(SETUP_INFO) .PHONY : all+ all+: clean+ all distrib .PHONY : all++ all++: clean+ all titles distrib # #-------------------------- .PHONY : ch+ ch+: chmod chown chgrp # #-------------------------- .PHONY : chmod chmod: @printf "$(LOGFORMAT)" chmod 775/664 "" @for d in . $(DIR_LIST); do test -d "$$d" && chmod ug+rw "$$d"/*; done @for d in $(DIR_LIST); do test -d "$$d" && chmod 775 "$$d"; done @find . -name '*.sh' -exec chmod 775 {} + @for t in $(ALL_TOOLS_X); do test -f "$$t" && chmod 775 "$$t"; done || true # #-------------------------- .PHONY : chown chown: @printf "$(LOGFORMAT)" chown "-R $$( stat -c%u . 2>/dev/null || stat -f%u . ) ." "" @chown -R "$$( stat -c%u . 2>/dev/null || stat -f%u . )" . # #-------------------------- .PHONY : chgrp chgrp: @printf "$(LOGFORMAT)" chgrp "-R $$( stat -c%g . 2>/dev/null || stat -f%g . ) ." "" @chgrp -R "$$( stat -c%g . 2>/dev/null || stat -f%g . )" . # #-------------------------- .PHONY : clean clean: @printf "$(LOGFORMAT)" rm "output files + distrib" "" @rm -f $(RM_FILES) @rm -fr $(DISTRIB_RM)* .PHONY : clean+ clean+: clean @printf "$(LOGFORMAT)" rm "test files + template output" "" @rm -f $(RM_FILES2) -@rm -fr doc .PHONY : clean++ clean++: clean+ @test -d .svn && svn st | sort -k2 || true # #-------------------------- .PHONY : debug debug: @printf "$(LOGFORMAT)" enable debug "-> define -DDEBUG" @rm -f *.o $(ALL_TOOLS_X) @echo "-DDEBUG" >>$(MODE_FILE) @sort $(MODE_FILE) | uniq > $(MODE_FILE).tmp # 2 steps to bypass a cygwin mv failure @cp $(MODE_FILE).tmp $(MODE_FILE) @rm -f $(MODE_FILE).tmp # #-------------------------- .PHONY : distrib2 distrib2: ifeq ($(SYSTEM_LINUX),1) @printf "\n---------- BUILDING LINUX/I386 ----------\n\n" @for t in $(ALL_TOOLS_X); do rm -f bin/$$t; done @M32=1 $(MAKE) --no-print-directory clean+ distrib @mv "$(DISTRIB_I386)" "save-$(DISTRIB_I386)" @printf "\n---------- BUILDING LINUX/X86_64 ----------\n\n" @for t in $(ALL_TOOLS_X); do rm -f bin/$$t; done @$(MAKE) --no-print-directory clean+ distrib @mv "save-$(DISTRIB_I386)" "$(DISTRIB_I386)" else @$(MAKE) --no-print-directory clean+ distrib endif #----- .PHONY : distrib distrib: ifeq ($(SYSTEM),mac) @$(MAKE) --no-print-directory mac-distrib else ifeq ($(SYSTEM),cygwin) $(MAKE) --no-print-directory all doc cygwin-copy.sh \ $(CYGWIN_SCRIPTS) gen-distrib wit.def else @STATIC=1 $(MAKE) --no-print-directory all doc gen-distrib wit.def endif #----- .PHONY : gen-distrib gen-distrib: @printf "$(LOGFORMAT)" create "$(DISTRIB_PATH)" "" ifeq ($(SYSTEM),cygwin) @rm -rf $(DISTRIB_PATH)/* 2>/dev/null || true @rm -rf $(DISTRIB_PATH) 2>/dev/null || true @mkdir -p $(DISTRIB_PATH)/bin $(DISTRIB_PATH)/doc @./cygwin-copy.sh @printf '@cmd\r\n' >$(DISTRIB_PATH)/bin/wit-console.bat @cp -p gpl-2.0.txt $(SETUP_INFO) $(DISTRIB_PATH) @ln -f $(MAIN_TOOLS) $(WDF_LINKS) $(CYGWIN_SCRIPTS) $(DISTRIB_PATH)/bin @ln -f $(CYGWIN_INSTALLER) $(DISTRIB_PATH)/windows-install.exe @ln -f $(CYGWIN_INSTALLER) $(DISTRIB_PATH)/windows-uninstall.exe @ln -f $(CYGWIN_INSTALLER) $(DISTRIB_PATH)/bin/windows-install.exe @ln -f $(CYGWIN_INSTALLER) $(DISTRIB_PATH)/bin/windows-uninstall.exe @( cd share; cp $(SHARE_FILES) ../$(DISTRIB_PATH)/bin ) @cp -p $(DOC_FILES) $(DISTRIB_PATH)/doc @rm -f $(DISTRIB_PATH)/doc/$(IGNORE_DOC_FILES) @zip -roq $(DISTRIB_PATH).zip $(DISTRIB_PATH) @chmod 664 $(DISTRIB_PATH).zip else @rm -rf $(DISTRIB_PATH) @mkdir -p $(DISTRIB_PATH)/bin $(DISTRIB_PATH)/scripts @mkdir -p $(DISTRIB_PATH)/share $(DISTRIB_PATH)/doc @cp -p $(DISTRIB_FILES) $(DISTRIB_PATH) @ln -f $(MAIN_TOOLS) $(WDF_LINKS) $(DISTRIB_PATH)/bin @for t in $(EXTRA_TOOLS); do [[ -f bin/$(SYSTEM)/$$t ]] \ && ln -f bin/$(SYSTEM)/$$t $(DISTRIB_PATH)/bin; done || true @cp -p share/*.txt $(DISTRIB_PATH)/share @cp -p $(DOC_FILES) $(DISTRIB_PATH)/doc @rm -f $(DISTRIB_PATH)/doc/$(IGNORE_DOC_FILES) @cp -p $(SCRIPTS)/*.{sh,txt} $(DISTRIB_PATH)/scripts @chmod -R 664 $(DISTRIB_PATH) @chmod a+x $(DISTRIB_PATH)/*.sh $(DISTRIB_PATH)/scripts/*.sh $(DISTRIB_PATH)/bin*/* @chmod -R a+X $(DISTRIB_PATH) @tar -czf $(DISTRIB_PATH).tar.gz $(DISTRIB_PATH) @chmod 664 $(DISTRIB_PATH).tar.gz endif #----- .PHONY : copy-distrib copy-distrib: distrib2 @printf "$(LOGFORMAT)" copy "$(DISTRIB_BASE).*" "-> $(DOWNLOAD_DIR)" @[[ -s "$(DISTRIB_I386)" ]] \ && cp --preserve=time "$(DISTRIB_I386)" "$(DOWNLOAD_DIR)" \ || true @[[ -s "$(DISTRIB_X86_64)" ]] \ && cp --preserve=time "$(DISTRIB_X86_64)" "$(DOWNLOAD_DIR)" \ || true @[[ -s "$(DISTRIB_CYGWIN)" ]] \ && cp --preserve=time "$(DISTRIB_CYGWIN)" "$(DOWNLOAD_DIR)" \ || true # #-------------------------- .PHONY : doc doc: $(MAIN_TOOLS) templates.sed gen-doc .PHONY : gen-doc gen-doc: @printf "$(LOGFORMAT)" create documentation "" @chmod ug+x $(GEN_TEMPLATE) @$(GEN_TEMPLATE) @cp -p doc/WDF.txt . # #-------------------------- .PHONY : flags flags: @echo "" @echo "DEFINES: $(DEFINES)" @echo "" @echo "CFLAGS: $(CFLAGS)" @echo "" @echo "LDFLAGS: $(LDFLAGS)" @echo "" @echo "LIBS: $(LIBS)" @echo "" @echo "C_OBJECTS: $(C_OBJECTS)" @echo "" # #-------------------------- .PHONY : install install: all ifeq ($(SYSTEM),cygwin) @[[ -d $(DISTRIB_PATH)/bin ]] || make distrib @( cd "$(DISTRIB_PATH)/bin" && ./windows-install.sh --cygwin ) else @chmod a+x install.sh @./install.sh --make endif .PHONY : install+ install+: clean+ all @chmod a+x install.sh @./install.sh --make #-------------------------- .PHONY : install2 install2: ifeq ($(SYSTEM_LINUX),1) @printf "\n---------- BUILDING LINUX/I386 ----------\n\n" @for t in $(ALL_TOOLS_X); do rm -f bin/$$t; done @M32=1 $(MAKE) --no-print-directory clean+ install ifeq ($(HAVE_INSTBIN_32),1) @printf "$(LOGFORMAT)" copy "$(INSTBIN)/* to $(INSTBIN_32)" @for f in $(BIN_FILES); do [[ -f $(INSTBIN)/$$f ]] \ && cp -p $(INSTBIN)/$$f $(INSTBIN_32); done; true @for f in $(WDF_LINKS); do ln -f $(INSTBIN_32)/wdf $(INSTBIN_32)/$$f; done endif @printf "\n---------- BUILDING LINUX/X86_64 ----------\n\n" @for t in $(ALL_TOOLS_X); do rm -f bin/$$t; done @$(MAKE) --no-print-directory clean+ install ifeq ($(HAVE_INSTBIN_64),1) @printf "$(LOGFORMAT)" copy "$(INSTBIN)/* to $(INSTBIN_64)" @for f in $(BIN_FILES); do [[ -f $(INSTBIN)/$$f ]] \ && cp -p $(INSTBIN)/$$f $(INSTBIN_64); done; true @for f in $(WDF_LINKS); do ln -f $(INSTBIN_64)/wdf $(INSTBIN_64)/$$f; done endif else @$(MAKE) --no-print-directory clean+ install endif # #-------------------------- .PHONY : new new: @printf "$(LOGFORMAT)" enable new "-> define -DNEW_FEATURES" @rm -f *.o $(ALL_TOOLS_X) @echo "-DNEW_FEATURES" >>$(MODE_FILE) @sort $(MODE_FILE) | uniq > $(MODE_FILE).tmp # 2 steps to bypass a cygwin mv failure @cp $(MODE_FILE).tmp $(MODE_FILE) @rm -f $(MODE_FILE).tmp # #-------------------------- .PHONY : old old: @printf "$(LOGFORMAT)" enable old "-> define -DOLD_FEATURES" @rm -f *.o $(ALL_TOOLS_X) @echo "-DOLD_FEATURES" >>$(MODE_FILE) @sort $(MODE_FILE) | uniq > $(MODE_FILE).tmp # 2 steps to bypass a cygwin mv failure @cp $(MODE_FILE).tmp $(MODE_FILE) @rm -f $(MODE_FILE).tmp # #-------------------------- .PHONY : predef predef: @gcc -E -dM none.c | sort # #-------------------------- .PHONY : $(SUB_PROJECTS) $(SUB_PROJECTS): @printf "$(LOGFORMAT)" make "$@" "" @$(MAKE) -C "$@" # #-------------------------- templates.sed: Makefile @printf "$(LOGFORMAT)" create templates.sed "" @echo -e '' \ '/^~/ d;\n' \ 's|@.@@@|$(VERSION_NUM)|g;\n' \ 's|@@@@-@@-@@|$(DATE)|g;\n' \ 's|@@:@@:@@|$(TIME)|g;\n' \ 's|@@AUTHOR@@|$(AUTHOR)|g;\n' \ 's|@@TOOLSET-SHORT@@|$(TOOLSET_SHORT)|g;\n' \ 's|@@TOOLSET-LONG@@|$(TOOLSET_LONG)|g;\n' \ 's|@@WIT-SHORT@@|$(WIT_SHORT)|g;\n' \ 's|@@WIT-LONG@@|$(WIT_LONG)|g;\n' \ 's|@@WWT-SHORT@@|$(WWT_SHORT)|g;\n' \ 's|@@WWT-LONG@@|$(WWT_LONG)|g;\n' \ 's|@@WDF-SHORT@@|$(WDF_SHORT)|g;\n' \ 's|@@WDF-LONG@@|$(WDF_LONG)|g;\n' \ 's|@@WFUSE-SHORT@@|$(WFUSE_SHORT)|g;\n' \ 's|@@WFUSE-LONG@@|$(WFUSE_LONG)|g;\n' \ 's|@@VERSION@@|$(VERSION)|g;\n' \ 's|@@VERSION-NUM@@|$(VERSION_NUM)|g;\n' \ 's|@@BETA-VERSION@@|$(BETA_VERSION)|g;\n' \ 's|@@BETA-SUFFIX@@|$(BETA_SUFFIX)|g;\n' \ 's|@@REV@@|$(REVISION)|g;\n' \ 's|@@REV-NUM@@|$(REVISION_NUM)|g;\n' \ 's|@@REV-NEXT@@|$(REVISION_NEXT)|g;\n' \ 's|@@BINTIME@@|$(BINTIME)|g;\n' \ 's|@@DATE@@|$(DATE)|g;\n' \ 's|@@TIME@@|$(TIME)|g;\n' \ 's|@@INSTALL-PATH@@|$(INSTALL_PATH)|g;\n' \ 's|@@SHARE-PATH@@|$(SHARE_PATH)|g;\n' \ 's|@@BIN-FILES@@|$(BIN_FILES)|g;\n' \ 's|@@SHARE-FILES@@|$(SHARE_FILES)|g;\n' \ 's|@@WDF-LINKS@@|$(WDF_LINKS)|g;\n' \ 's|@@CYGWIN-DIR@@|$(CYGWIN_DIR)|g;\n' \ 's|@@CYGWIN-TOOLS@@|$(CYGWIN_TOOLS)|g;\n' \ 's|@@WIN-INSTALL-PATH@@|$(WIN_INSTALL_PATH)|g;\n' \ 's|@@LANGUAGES@@|$(LANGUAGES)|g;\n' \ 's|@@DISTRIB-PATH@@|$(DISTRIB_PATH)|g;\n' \ 's|@@DISTRIB-I386@@|$(DISTRIB_I386)|g;\n' \ 's|@@DISTRIB-X86_64@@|$(DISTRIB_X86_64)|g;\n' \ 's|@@DISTRIB-MAC@@|$(DISTRIB_MAC)|g;\n' \ 's|@@DISTRIB-CYGWIN@@|$(DISTRIB_CYGWIN)|g;\n' \ 's|@@URI-FILE@@|$(URI_FILE)|g;\n' \ 's|@@URI-REPOS@@|$(URI_REPOS)|g;\n' \ 's|@@URI-VIEWVC@@|$(URI_VIEWVC)|g;\n' \ 's|@@URI-HOME@@|$(URI_HOME)|g;\n' \ 's|@@URI-DOWNLOAD@@|$(URI_DOWNLOAD)|g;\n' \ 's|@@URI-WDF@@|$(URI_WDF)|g;\n' \ 's|@@URI-CISO@@|$(URI_CISO)|g;\n' \ 's|@@URI-QTWITGUI@@|$(URI_QTWITGUI)|g;\n' \ 's|@@URI-WIIBAFU@@|$(URI_WIIBAFU)|g;\n' \ 's|@@URI-MACWITGUI@@|$(URI_MACWITGUI)|g;\n' \ 's|@@URI-GBATEMP@@|$(URI_GBATEMP)|g;\n' \ 's|@@URI-DOWNLOAD-I386@@|$(URI_DOWNLOAD_I386)|g;\n' \ 's|@@URI-DOWNLOAD-X86_64@@|$(URI_DOWNLOAD_X86_64)|g;\n' \ 's|@@URI-DOWNLOAD-MAC@@|$(URI_DOWNLOAD_MAC)|g;\n' \ 's|@@URI-DOWNLOAD-CYGWIN@@|$(URI_DOWNLOAD_CYGWIN)|g;\n' \ 's|@@URI-TITLES@@|$(URI_TITLES)|g;\n' \ >templates.sed # #-------------------------- .PHONY : test test: @printf "$(LOGFORMAT)" enable test "-> define -DTEST" @rm -f *.o $(ALL_TOOLS_X) @echo "-DTEST" >>$(MODE_FILE) @sort $(MODE_FILE) | uniq > $(MODE_FILE).tmp # 2 steps to bypass a cygwin mv failure @cp $(MODE_FILE).tmp $(MODE_FILE) @rm -f $(MODE_FILE).tmp # #-------------------------- .PHONY : test-trace test-trace: @printf "$(LOGFORMAT)" enable testtrace "-> define -DTESTTRACE" @rm -f *.o $(ALL_TOOLS_X) @echo "-DTESTTRACE" >>$(MODE_FILE) @sort $(MODE_FILE) | uniq > $(MODE_FILE).tmp # 2 steps to bypass a cygwin mv failure @cp $(MODE_FILE).tmp $(MODE_FILE) @rm -f $(MODE_FILE).tmp # #-------------------------- .PHONY : titles titles: wit load-titles.sh gen-titles .PHONY : gen-titles gen-titles: @chmod a+x load-titles.sh @./load-titles.sh --make # #-------------------------- .PHONY : tools tools: $(ALL_TOOLS) # #-------------------------- .PHONY : up up: clean++ do_up ch+ .PHONY : do_up do_up: clean @printf "$(LOGFORMAT)" svn update @svn update # #-------------------------- .PHONY : wait wait: @printf "$(LOGFORMAT)" enable wait "-> define -DWAIT_ENABLED" @rm -f *.o $(ALL_TOOLS_X) @echo "-DWAIT_ENABLED" >>$(MODE_FILE) @sort $(MODE_FILE) | uniq > $(MODE_FILE).tmp # 2 steps to bypass a cygwin mv failure @cp $(MODE_FILE).tmp $(MODE_FILE) @rm -f $(MODE_FILE).tmp # #-------------------------- %.wbfs: wwt @printf "$(LOGFORMAT)" create "$@" "$(WBFS_SIZE)G, add smallest $(WBFS_COUNT) ISOs" @rm -f $@ @./wwt format --force --inode --size $(WBFS_SIZE)- "$@" @stat --format="%b|%n" pool/wdf/*.wdf \ | sort -n \ | awk '-F|' '{print $$2}' \ | head -n$(WBFS_COUNT) \ | ./wwt -A -p "$@" add @- -v # #-------------------------- .PHONY : format-wbfs format-wbfs: @printf "$(LOGFORMAT)" create "$(WBFS_FILES)," "size=$(WBFS_SIZE)G" @rm -f $(WBFS_FILES) @s=512; \ for w in $(WBFS_FILES); \ do ./wwt format -qfs $(WBFS_SIZE)- --sector-size=$$s --inode "$$w"; \ let s*=2; \ done # #-------------------------- .PHONY : wbfs wbfs: wwt format-wbfs gen-wbfs .PHONY : gen-wbfs gen-wbfs: format-wbfs @printf "$(LOGFORMAT)" charge "$(WBFS_FILE)" "" @stat --format="%b|%n" pool/wdf/*.wdf \ | sort -n \ | awk '-F|' '{print $$2}' \ | head -n$(WBFS_COUNT) \ | ./wwt -A -p @<(ls $(WBFS_FILE)) add @- @echo @./wwt f -l $(WBFS_FILES) @./wwt lf $(WBFS_FILE) --mtime # #-------------------------- .PHONY : wbfs+ wbfs+: wwt format-wbfs gen-wbfs+ .PHONY : gen-wbfs+ gen-wbfs+: format-wbfs @printf "$(LOGFORMAT)" charge "$(WBFS_FILES)" "" @stat --format="%b|%n" pool/iso/*.iso \ | sort -n \ | awk '-F|' '{print $$2}' \ | head -n$(WBFS_COUNT) \ | ./wwt -A -p @<(ls $(WBFS_FILES)) add @- @echo @./wwt f -l $(WBFS_FILES) @./wwt lf $(WBFS_FILES) @echo "WBFS: this is not a wbfs file" >no.wbfs # #-------------------------- .PHONY : xwbfs xwbfs: wwt @printf "$(LOGFORMAT)" create x.wbfs "1TB, sec-size=2048 and then with sec-size=512" @./wwt init -qfs1t x.wbfs --inode --sector-size=2048 @sleep 2 @./wwt init -qfs1t x.wbfs --inode --sector-size=512 #-------------------------- .PHONY : bad-wbfs bad-wbfs: wwt a.wbfs @printf "$(LOGFORMAT)" edit "a.wbfs" "(create errors)" # @./wwt edit -p a.wbfs -f rm=10 act=0 @./wwt edit -p a.wbfs -f free=4 act=0-1 R64P01=10:1 # @./wwt check -p a.wbfs -vv # #-------------------------- .PHONY : wdf-links wdf-links: @printf "$(LOGFORMAT)" link "$(WDF_TEST_LINKS) -> wdf" "" @for l in $(WDF_TEST_LINKS); do rm -f $$l; ln -s wdf $$l; done # ############################################################################### # help rule .PHONY : help help: @echo "" @echo "$(DATE) $(TIME) - $(VERSION) - svn r$(REVISION):$(REVISION_NEXT)" @echo "" @echo " make := make all" @echo " make all make all tools and install scripts" @echo " make all+ := make clean+ all distrib" @echo " make all++ := make clean+ all titles distrib" @echo " make _tool_ compile only the named '_tool_' (wit,wwt,...)" @echo " make tools make all tools" @echo "" @echo " make clean remove all output files" @echo " make clean+ make clean & rm test_files & rm template_output" @echo "" @echo " make debug enable '-DDEBUG'" @echo " make test enable '-DTEST'" @echo " make new enable '-DNEW_FEATURES'" @echo " make old enable '-DOLD_FEATURES'" @echo " make wait enable '-DWAIT'" @echo " make testtrace enable '-DTESTTRACE'" @echo " make flags print DEFINES, CFLAGS and LDFLAGS" @echo "" @echo " make doc generate doc files from their templates" @echo " make distrib make all & build $(DISTRIB_PATH)" @echo " make titles get titles from $(URI_TITLES)" @echo " make install make all & copy tools to $(INSTALL_PATH)" @echo " make install+ := make clean+ install" @echo "" @echo " make chmod change mode 775/644 for known dirs and files" @echo " make chown change owner of all dirs+files to owner of ." @echo " make chgrp change group of all dirs+files to group of ." @echo " make ch+ := make chmod chown chgrp" @echo "" @echo " make %.wbfs gen %.wbfs, $(WBFS_SIZE)G, add smallest $(WBFS_COUNT) ISOs" @echo " make wbfs gen $(WBFS_FILE), $(WBFS_SIZE)G, add smallest $(WBFS_COUNT) ISOs" @echo " make wbfs+ gen $(WBFS_FILES), $(WBFS_SIZE)G, add smallest $(WBFS_COUNT) ISOs" @echo "" @echo " make help print this help" @echo "" # ############################################################################### # local definitions -include makefiles-local/Makefile.local.$(SYSTEM) -include Makefile.user wit-2.22b/setup.sh0000644000014500017510000000456012167616640013403 0ustar michaelstaff#!/usr/bin/env bash revision=0 if [[ -d .svn ]] && which svn >/dev/null 2>&1 then revision="$( svn info . | awk '$1=="Revision:" {print $2}' )" if which svnversion >/dev/null 2>&1 then rev="$(svnversion|sed 's/.*://')" (( ${revision//[!0-9]/} < ${rev//[!0-9]/} )) && revision=$rev fi fi revision_num="${revision//[!0-9]/}" revision_next=$revision_num [[ $revision = $revision_num ]] || let revision_next++ tim=($(date '+%s %Y-%m-%d %T')) have_fuse=0 [[ $NO_FUSE != 1 && -r /usr/include/fuse.h || -r /usr/local/include/fuse.h ]] \ && have_fuse=1 if [[ $M32 = 1 ]] then force_m32=1 have_fuse=0 xflags="-m32" defines=-DFORCE_M32=1 else force_m32=0 xflags= defines= fi [[ -r /usr/include/bits/fcntl.h ]] \ && grep -qw fallocate /usr/include/bits/fcntl.h \ && defines="$defines -DHAVE_FALLOCATE=1" [[ -r /usr/include/fcntl.h ]] \ && grep -qw posix_fallocate /usr/include/fcntl.h \ && defines="$defines -DHAVE_POSIX_FALLOCATE=1" [[ -r /usr/include/linux/fiemap.h ]] \ && grep -qw fiemap_extent /usr/include/linux/fiemap.h \ && defines="$defines -DHAVE_FIEMAP=1" [[ $STATIC = 1 ]] || STATIC=0 #-------------------------------------------------- INSTALL_PATH=/usr/local if [[ -d $INSTALL_PATH/bin ]] then HAVE_INSTBIN=1 INSTBIN=$INSTALL_PATH/bin else HAVE_INSTBIN=0 INSTBIN=/tmp fi if [[ -d $INSTALL_PATH/bin32 ]] then HAVE_INSTBIN_32=1 INSTBIN_32=$INSTALL_PATH/bin32 else HAVE_INSTBIN_32=0 INSTBIN_32=/tmp fi if [[ -d $INSTALL_PATH/bin64 ]] then HAVE_INSTBIN_64=1 INSTBIN_64=$INSTALL_PATH/bin64 elif [[ -d $INSTALL_PATH/bin-x86_64 ]] then HAVE_INSTBIN_64=1 INSTBIN_64=$INSTALL_PATH/bin-x86_64 else HAVE_INSTBIN_64=0 INSTBIN_64=/tmp fi #-------------------------------------------------- cat <<- ---EOT--- >Makefile.setup REVISION := $revision REVISION_NUM := $revision_num REVISION_NEXT := $revision_next BINTIME := ${tim[0]} DATE := ${tim[1]} TIME := ${tim[2]} FORCE_M32 := $force_m32 HAVE_FUSE := $have_fuse STATIC := $STATIC XFLAGS += $xflags DEFINES1 := $defines HAVE_INSTBIN := $HAVE_INSTBIN HAVE_INSTBIN_32 := $HAVE_INSTBIN_32 HAVE_INSTBIN_64 := $HAVE_INSTBIN_64 INSTALL_PATH := $INSTALL_PATH INSTBIN := $INSTBIN INSTBIN_32 := $INSTBIN_32 INSTBIN_64 := $INSTBIN_64 ---EOT--- gcc $xflags system.c -o system.tmp && ./system.tmp >>Makefile.setup rm -f system.tmp wit-2.22b/system.c0000644000014500017510000000544412167616640013401 0ustar michaelstaff /*************************************************************************** * __ __ _ ___________ * * \ \ / /| |____ ____| * * \ \ / / | | | | * * \ \ /\ / / | | | | * * \ \/ \/ / | | | | * * \ /\ / | | | | * * \/ \/ |_| |_| * * * * Wiimms ISO Tools * * http://wit.wiimm.de/ * * * *************************************************************************** * * * This file is part of the WIT project. * * Visit http://wit.wiimm.de/ for project details and sources. * * * * Copyright (c) 2009-2012 by Dirk Clemens * * * *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * See file gpl-2.0.txt or http://www.gnu.org/licenses/gpl-2.0.txt * * * ***************************************************************************/ #include #include "src/system.h" int main ( int argc, char ** argv ) { printf( "SYSTEM\t\t:= %s\n" "SYSTEMID\t:= 0x%x\n" #ifdef SYSTEM_LINUX "SYSTEM_LINUX\t:= 1\n" #endif , SYSTEM, SYSTEMID ); return 0; } wit-2.22b/print-disc-blocks.sh0000755000014500017510000000136012167616640015570 0ustar michaelstaff#!/usr/bin/env bash CYGWIN=0 [[ $TERM = cygwin ]] && CYGWIN=1 for src in "$@" do file="$(readlink -m "$src")" dir="${file%/*}" if ((CYGWIN)) then dev="$( df "$dir" | awk '$1 ~ "^[A-Z]:" { print $1; exit }' )" else dev="$( df "$dir" | awk '$1 ~ "^/dev/" { print $1; exit }' )" fi inode="<$(stat -c%i "$file")>" usage=$(($(stat -c'%B/512*%b' "$file")/2048)) size=$(($(stat -c%s "$file")/1024/1024)) if ((1)) then echo -n "$src -> $dev $inode, $usage/$size MiB, frag=" DEBUGFS_PAGER=cat /sbin/debugfs "$dev" -R "stat $inode" 2>&1 \ | sed -r '0,/^(EXTENTS|BLOCKS):/ d; s/, */\n/g' \ | grep -vF '(IND)' \ | wc -l else DEBUGFS_PAGER=cat /sbin/debugfs "$dev" -R "stat $inode" fi done wit-2.22b/edit-list/0000755000014500017510000000000012167616662013604 5ustar michaelstaffwit-2.22b/edit-list/winapi.edit-list0000644000014500017510000000025112167616640016705 0ustar michaelstaff../src/winapi.[ch] ; ../src/lib-file.[ch] ; ../src/lib-std.[ch] ; @+all-source.edit-list -y 100 ../src/winapi.c ; -y 120 ../src/winapi.h ; -y 3420 ../src/lib-file.c ; wit-2.22b/edit-list/+user-interface.edit-list0000644000014500017510000000056212167616640020412 0ustar michaelstaff../src/ui/tab-ui.c ; ../src/ui/tab-wit.inc ; ../src/ui/tab-wwt.inc ; ../src/ui/tab-wdf.inc ; ../src/ui/tab-*.inc ; ../src/ui/gen-ui.c ; ../src/ui/ui.[ch] ; ../src/ui/*.[ch] ; ../ui-*.tmp ; @+all-source.edit-list -y 185 ../src/ui/tab-ui.c ; -y 48 ../src/ui/tab-wit.inc ; -y 48 ../src/ui/tab-wwt.inc ; -y 48 ../src/ui/tab-wdf.inc ; -y 48 ../src/ui/tab-wfuse.inc ; wit-2.22b/edit-list/lib-wdf.edit-list0000644000014500017510000000027412167616640016747 0ustar michaelstaff../src/lib-wdf.[ch] ; ../src/lib-sf.[ch] ; ../src/lib-std.[ch] ; ../src/lib-file.[ch] ; ../src/lib-ciso.[ch] ; @+all-source.edit-list -y 100 ../src/lib-wdf.c ; -y 100 ../src/lib-wdf.h ; wit-2.22b/edit-list/+all-source.edit-list0000644000014500017510000000045712167616640017547 0ustar michaelstaff../src/wit.c ; ../src/wwt.c ; ../src/lib-std.[ch] ; ../src/lib-file.[ch] ; ../src/lib-error.[ch] ; ../src/lib-sf.[ch] ; ../src/lib-wdf.[ch] ; ../src/lib-ciso.[ch] ; ../src/iso-interface.[ch] ; ../src/wbfs-interface.[ch] ; ../src/*.{c,h} ; ../src/&/*.{c,h,s,S} ; ../setup/*.{c,h} ; ../work/*.{c,h,s,S} ; wit-2.22b/edit-list/+doc.edit-list0000644000014500017510000000042412167616640016240 0ustar michaelstaff../templates/module/last-history.txt ; ../templates/{wit,wwt}.txt ; ../templates/DOCUMENTATION.txt ; ../templates/HISTORY.txt ; ../templates/HISTORY*.txt ; ../templates/*.txt ; ../templates/*.forum ; ../templates/&/*.{txt,def,inc} ; ../setup/&/*.{txt,def,inc} ; ../work/2do ; wit-2.22b/edit-list/lib-sf.edit-list0000644000014500017510000000027212167616640016575 0ustar michaelstaff../src/lib-sf.[ch] ; ../src/lib-std.[ch] ; ../src/lib-file.[ch] ; ../src/lib-wdf.[ch] ; ../src/lib-ciso.[ch] ; @+all-source.edit-list -y 5530 ../src/lib-sf.c ; -y 500 ../src/lib-sf.h ; wit-2.22b/edit-list/+all-header.edit-list0000644000014500017510000000003412167616640017466 0ustar michaelstaff../src/*.h ; ../src/&/*.h ; wit-2.22b/edit-list/wtest.edit-list0000644000014500017510000000026612167616640016572 0ustar michaelstaff../src/wtest.c ; ../src/lib-bzip2.[ch] ; ../src/lib-std.c ; ../work/wtest+.c ; @+all-source.edit-list -y 750 ../src/wtest.c ; -y 320 ../src/lib-bzip2.c ; -y 150 ../src/lib-bzip2.h ; wit-2.22b/edit-list/test-libwbfs.edit-list0000644000014500017510000000011612167616640020023 0ustar michaelstaff../test-libwbfs/*.[ch] ; @lib-wbfs-only.edit-list ../test-libwbfs/Mafefile. ; wit-2.22b/edit-list/+scripts.edit-list0000644000014500017510000000006212167616640017160 0ustar michaelstaff../*.sh ; ../{templates,scripts,src,setup}/&/*.sh wit-2.22b/edit-list/lib-ciso.edit-list0000644000014500017510000000027412167616640017124 0ustar michaelstaff../src/lib-ciso.[ch] ; ../src/lib-sf.[ch] ; ../src/lib-std.[ch] ; ../src/lib-file.[ch] ; ../src/lib-wdf.[ch] ; @+all-source.edit-list -y 40 ../src/lib-ciso.c ; -y 20 ../src/lib-ciso.h ; wit-2.22b/edit-list/wbfs-interface.edit-list0000644000014500017510000000035712167616640020324 0ustar michaelstaff../src/wbfs-interface.[ch] ; ../src/iso-interface.[ch] ; ../src/lib-wdf.[ch] ; ../src/lib-std.[ch] ; ../src/lib-file.[ch] ; ../src/lib-error.[ch] ; @+all-source.edit-list -y 100 ../src/wbfs-interface.h ; -y 4060 ../src/wbfs-interface.c ; wit-2.22b/edit-list/patch.edit-list0000644000014500017510000000036412167616640016522 0ustar michaelstaff../src/patch.[ch] ; ../src/iso-interface.[ch] ; ../src/libwbfs/file-formats.h ; ../src/lib-wdf.[ch] ; ../src/lib-std.[ch] ; ../src/lib-file.[ch] ; ../src/lib-error.[ch] ; @+all-source.edit-list -y 1035 ../src/patch.c ; -y 202 ../src/patch.h ; wit-2.22b/edit-list/+text-files.edit-list0000644000014500017510000000011012167616640017547 0ustar michaelstaff../text-files/*.inc ; ../text-files/*.inc/*.inc ; ../gen-text-file.sh ; wit-2.22b/edit-list/cert.edit-list0000644000014500017510000000015012167616640016351 0ustar michaelstaff../src/libwbfs/cert.[ch] ; @wiidisc.edit-list -y 300 ../src/libwbfs/cert.c -y 100 ../src/libwbfs/cert.h wit-2.22b/edit-list/doc-forum.edit-list0000644000014500017510000000002712167616640017312 0ustar michaelstaff../templates/*.forum ; wit-2.22b/edit-list/lib-bzip2.edit-list0000644000014500017510000000022712167616640017213 0ustar michaelstaff../src/lib-bzip2.[ch] ; ../src/libbz2/*.[ch] ; ../src/lib-lzma.[ch] ; @+all-source.edit-list -y 42 ../src/lib-bzip2.c ; -y 42 ../src/lib-bzip2.h ; wit-2.22b/edit-list/wfuse.edit-list0000644000014500017510000000015612167616640016553 0ustar michaelstaff../src/wfuse.c ; ../src/wit.c ; ../src/wwt.c ; @+all-source.edit-list @+doc.edit-list -y 100 ../src/wfuse.c ; wit-2.22b/edit-list/error.edit-list0000644000014500017510000000016512167616640016553 0ustar michaelstaff../src/lib-error.h ; ../src/lib-std.c ; @+all-source.edit-list -y 35 ../src/lib-error.h ; -y 580 ../src/lib-std.c ; wit-2.22b/edit-list/debug.edit-list0000644000014500017510000000013112167616640016501 0ustar michaelstaff../src/debug.[ch] ; @lib-std.edit-list -y 160 ../src/debug.c ; -y 343 ../src/debug.h ; wit-2.22b/edit-list/lib-wbfs-only.edit-list0000644000014500017510000000031112167616640020077 0ustar michaelstaff../src/libwbfs/libwbfs.[ch] ; ../src/libwbfs/wiidisc.[ch] ; ../src/libwbfs/file-formats.[ch] ; ../src/libwbfs/tools.[ch] ; ../src/libwbfs/rijndael.[ch] ; ../src/libwbfs/*.[ch] ; ../src/libwbfs/*.txt ; wit-2.22b/edit-list/lib-wia.edit-list0000755000014500017510000000026512167616640016752 0ustar michaelstaff../src/lib-wia.[ch] ; ../src/lib-wdf.[ch] ; ../src/lib-sf.[ch] ; ../src/lib-std.[ch] ; ../src/lib-file.[ch] ; ../src/lib-ciso.[ch] ; @+all-source.edit-list -y 1 ../src/lib-wia.c ; wit-2.22b/edit-list/+all.edit-list0000644000014500017510000000022412167616640016241 0ustar michaelstaff@+all-source.edit-list @+doc.edit-list @+templates.edit-list @+text-files.edit-list @+scripts.edit-list @+makefiles.edit-list @+editlists.edit-list wit-2.22b/edit-list/wwt.edit-list0000644000014500017510000000021212167616640016234 0ustar michaelstaff../src/wwt.c ; ../templates/wwt.txt ; ../src/wit.c ; ../src/wwt+wit-cmd.c ; @+all-source.edit-list @+doc.edit-list -y 2990 ../src/wwt.c ; wit-2.22b/edit-list/wdf.edit-list0000644000014500017510000000015212167616640016176 0ustar michaelstaff../src/wdf.c ; ../src/wit.c ; ../src/wwt.c ; @+all-source.edit-list @+doc.edit-list -y 670 ../src/wdf.c ; wit-2.22b/edit-list/crypt-only.edit-list0000644000014500017510000000005212167616640017535 0ustar michaelstaff../src/crypt.h ; ../src/crypto/*.[chsS] ; wit-2.22b/edit-list/+editlists.edit-list0000644000014500017510000000001612167616640017474 0ustar michaelstaff*.edit-list ; wit-2.22b/edit-list/dclib.edit-list0000644000014500017510000000006012167616640016471 0ustar michaelstaff../src/dclib-utf8.[ch] ; @+all-source.edit-list wit-2.22b/edit-list/+makefiles.edit-list0000644000014500017510000000027212167616640017434 0ustar michaelstaff../work/Makefile.user ; ../Makefile. ; ../Makefile.* ; ../src/*/Makefile ; ../makefiles-local/Makefile.* ; ../*/Makefile. ; -R *.bak -y 46 ../Makefile. ; -y -30 ../work/Makefile.user ; wit-2.22b/edit-list/+templates.edit-list0000644000014500017510000000003412167616640017466 0ustar michaelstaff../templates/*.{txt,h,sh} ; wit-2.22b/edit-list/match-pattern.edit-list0000644000014500017510000000011012167616640020157 0ustar michaelstaff../src/match-pattern.[ch] ; ../src/titles.[ch] ; @+all-source.edit-list wit-2.22b/edit-list/lib-lzma.edit-list0000644000014500017510000000035112167616640017126 0ustar michaelstaff../src/lib-lzma.[ch] ; ../src/lzma/LzmaDec.c ; ../src/lzma/LzmaEnc.c ; ../src/lzma/*.[ch] ; ../src/lzma/*.txt ; ../src/wtest.c ; @+all-source.edit-list -y 42 ../src/lib-lzma.c ; -y 42 ../src/lib-lzma.h ; -y 560 ../src/wtest.c ; wit-2.22b/edit-list/lib-wbfs.edit-list0000644000014500017510000000026212167616640017125 0ustar michaelstaff../src/libwbfs/libwbfs.[ch] ; ../src/libwbfs/tools.[ch] ; @lib-wbfs-only.edit-list @iso-interface.edit-list -y 1300 ../src/libwbfs/libwbfs.c ; -y 420 ../src/libwbfs/libwbfs.h ; wit-2.22b/edit-list/titles.edit-list0000644000014500017510000000010312167616640016716 0ustar michaelstaff../src/titles.[ch] ; @+all-source.edit-list -y 305 ../src/titles.c wit-2.22b/edit-list/wit.edit-list0000644000014500017510000000036312167616640016225 0ustar michaelstaff../src/wit.c ; ../src/wit-mix.c ; ../src/wwt+wit-cmd.c ; ../src/iso-interface.[ch] ; ../src/wwt.c ; @+all-source.edit-list @+doc.edit-list -y 680 ../src/wit.c ; -y 1 ../src/wwt.c ; -y 1 ../src/wit-mix.c ; -y 1 ../src/wwt+wit-cmd.c ; wit-2.22b/edit-list/trace.edit-list0000644000014500017510000000002012167616640016506 0ustar michaelstaff../_trace-*.tmp wit-2.22b/edit-list/lib-std.edit-list0000644000014500017510000000033112167616640016753 0ustar michaelstaff../src/lib-file.[ch] ; ../src/lib-std.[ch] ; ../src/lib-error.[ch] ; ../src/lib-wdf.[ch] ; ../src/lib-sf.[ch] ; @+all-source.edit-list -y 3800 ../src/lib-std.c ; -y 1220 ../src/lib-std.h ; -y 3230 ../src/lib-file.c ; wit-2.22b/edit-list/wiidisc.edit-list0000644000014500017510000000037312167616640017056 0ustar michaelstaff../src/libwbfs/wiidisc.[ch] ; ../src/libwbfs/tools.[ch] ; ../src/wit.c ; ../src/libwbfs/file-formats.[ch] ; @lib-wbfs-only.edit-list @iso-interface.edit-list -y 2216 ../src/libwbfs/wiidisc.c ; -y 1 ../src/libwbfs/wiidisc.h ; -y 1 ../src/wit.c ; wit-2.22b/edit-list/lib-wbfs-h.edit-list0000644000014500017510000000013212167616640017346 0ustar michaelstaff../src/libwbfs/*.h ; ../src/libwbfs/*.c ; ../src/libwbfs/*.txt ; @iso-interface.edit-list wit-2.22b/edit-list/file-formats.edit-list0000644000014500017510000000041012167616640020003 0ustar michaelstaff../src/libwbfs/file-formats.h ; ../src/libwbfs/file-formats.c ; ../src/libwbfs/tools.[ch] ; ../src/lib-std.[ch] ; ../src/lib-file.[ch] ; @+all-source.edit-list -y 1 ../src/libwbfs/file-formats.c ; -y 920 ../src/libwbfs/file-formats.h ; -y 1 ../src/lib-std.c ; wit-2.22b/edit-list/iso-interface.edit-list0000644000014500017510000000044112167616640020147 0ustar michaelstaff../src/iso-interface.[ch] ; ../src/patch.[ch] ; ../src/libwbfs/file-formats.h ; ../src/wbfs-interface.[ch] ; ../src/lib-wdf.[ch] ; ../src/lib-std.[ch] ; ../src/lib-file.[ch] ; ../src/lib-error.[ch] ; @+all-source.edit-list -y 100 ../src/iso-interface.h ; -y 3740 ../src/iso-interface.c ; wit-2.22b/templates/0000755000014500017510000000000012167616662013704 5ustar michaelstaffwit-2.22b/templates/HISTORY-v0.txt0000644000014500017510000007056312167616640016140 0ustar michaelstaff @@MODULE(head.txt)@@ @@MODULE(content.txt)@@ ******************************************************************************* ******* HISTORY v0.* ******* ******************************************************************************* wwt v0.00a r116 - 2009-09-28 - First release. - Supported commands: HELP, ERROR, FIND, SPACE, DUMP, ID6, LIST*, ADD, EXTRACT, REMOVE wwt v0.00b r123 - 2009-09-28 - new: command FORMAT wwt v0.00c r145 - 2009-09-30 - EXTRACT & REMOVE: -tt (--test twice) => print normalized ID6 list and exit. - EXTRACT: option --unique enabled. - EXTRACT & ADD: progress info enabled with -vv. - New processing of ID6 parameters. - Bug fix: the long option --sort does'n take a parameter. - Output of LIST improved. - The read and write file subroutines are rewritten. ==> tests needed. - The new option --sparse enables improved sparse handling. wwt v0.00d r164 - 2009-10-03 - Support for WDF images (see file 'WDF.txt', EXPERIMENTAL) - New tools: wdf-dump, wdf2iso, iso2wdf, wdf-cat - Option --sparse replaced by --fast. - Scan environment variable 'WWT_WBFS' for WBFS partitions. wwt v0.01a r168 - 2009-10-04 - WWT leaves Alpha and goes Beta! - WDF is now productive; WDF documentation expanded. - Extracting to WDF is now default. --iso forces ISO output. - Bug fix: Wrong "end of disc" handling while writing a double layer ISO and --trunc is not set. wwt v0.02a r179 - 2009-10-05 - Command abbreviations are allowed if they are unambiguous. - EXTRACT: Improved filename handling when using 'ID6=filename'. - Enhanced error management. - Bug fix [wdf2iso]: Couldn't create zero length files. - From now on, the distribution has subdirectories: bin lib doc scripts - Tools wdf-dump, iso2wdf, wdf2iso, wdf-cat: options available. - New: scripts/test-wdf-tools.sh: test the wdf tools. -> over 320000 files (mixed user files) testet without failures. - New: scripts/time-test.sh: run time tests -> see file 'STATISTICS.txt'. wwt v0.03a r200 - 2009-10-08 - Enhanced error management again. - Misspelling in --help: The shortcut for 'DUMP' is 'D' and not 'DP'. - Make: Support of environment variable 'XFLAGS' -> 'XFLAGS=-march=x86-64 make' - File handling: Support of open() and fopen() as alternatives for testing. - Script test-wdf-tools.sh: Positive test is now done with >1 million files. - New option for 'wdf-dump': --chunk: Print chunk header table. - WDF specification is complete. wwt v0.04a r212 - 2009-10-11 - ADD: ID6 is now also recognized when source is a WDF. - New command: FILETYPE: Print a status line for each given file. - New script: test-ADD+EXTRACT.sh: ADD + EXTRACT test with various options. - *EXPERIMENTAL*: - Option --cache enables caching of well known file parts while reading an ISO image. Perhaps cached areas must be expanded. - Adding a game from a pipe if option --cache is set. Commands like "wwt ... ADD --cache <(UNRAR-TO-STDOUT game.rar)" are possible. - Doc: Explanation of the hidden options: --hole-size, --io and --cache wwt v0.05a r247 - 2009-10-14 - Complete new interface to the WBFS subsystem: - unused source files removed. - improved error messages of libwbfs - WBFS file handling rewritten. It supports now file (using open() function) and stream (using fopen() function) methods. Use --io to select method. - New option: --ignore: Ignore non existing files/discs without warnings. Can be used with: ADD, EXTRACT, REMOVE (replaces --force) and FILETYPE. - The lib path moved from '/usr/local/lib/' to '/usr/local/share/wwt/'. - New option --sector-size: Set logical hd sector size larger than 512 while formatting WBFS => The max disc count of a WBFS will be raised. - Title database implemented. - New command: TITLES: Print the internal title database to stdout. - ADD: ISO image is acepted from stdin if a file is named '-'. For pipes the experimental option --cache must be set. wwt v0.06a r258 - 2009-10-15 - If adding from a pipe the cache (option --cache) is enabled automatically. - Signal handler implemented for INT, TERM, USR1 and USR2. (see docu) - Bug fix: INIT failed if formatting a block device. - Bug fix: EXTRACT: Wrong file size calculation for double layer discs if a zero filled block at the end of the image is found (ISO and WDF). wwt v0.07a r273 - 2009-10-19 - Check the MAGIC "5d-1c-9e-a3" at position 0x18 of ISO files. - New script: convert-iso-to-wdf.sh: Find ISO files and convert it to WDF. The converted WDF will be compared with the source and removed if differ. - 'iso2wdf' and 'wdf2iso' may convert through stdin->stdout. - Script test-wdf-tools.sh: Positive test is now done with >2 million files. I declare WDF as stable. I have converted all my games to WDF. - The source is now more compatible for non linux/386 machines. - Source files renamed. - The binaries are linked without -static now. Hope that makes no problems. wwt v0.07b r278 - 2009-10-20 - Cygwin support. - Minor bug fixes. wwt v0.08a r294 - 2009-10-23 - iso2wdf + wdf2iso: new options: --dest dir_or_file, --overwrite - The documentation is now divided into more files: Each tool has its own one. - Some minor bug fixes in libwbfs. - Option --remove: short option is now -R. - New options: --exclude and --exclude-path: exclude discs from operation. - New command: EXCLUDE: print the results of --exclude and --exclude-path. - New tool: wit = Wiimms ISO Tool. (empty framework yet) - Scan environment variables 'WWT_OPT' and 'WIT_OPT' for predefined options. - CYGWIN bug fix: WDF support failed because of non packed data structure. - CYGWIN: I have done a little test series without failures. - Allow the wbfs subsystem to read behind end of file marker (print a warning). wwt v0.09a r309 - 2009-10-27 - Bug fix: progress counter was only shown for first job. - Hidden option --hole-size removed. - Option --sort: keyword scanning enabled. - New option --psel: define a partition selector. - New option --update for ADD+EXTRACT: copy only new files. - New wwt command UPDATE: shortcut for 'ADD --update'. - wit commands: VERSION, HELP, ERROR, TITLES, EXCLUDE, FILELIST, FILETYPE, ID6, LIST, LIST-L, LIST-LL. - Title files for: de en es fr it ja ko nl pt (loaded from WiiTDB.com). wwt v0.10a r325 - 2009-10-31 - wwt+wit DUMP: Output expanded. - ADD --trunc: WBFS will be truncated/trimmed to minimal size after adding. - New wwt command: TRUNCATE: truncate/trim a WBFS to minimal size. - Size options: advanced arguments -> see section "Processing size options". - All tools: EXPERIMENTAL support of splitted WBFS, WDF and ISO files: - While generating a file use --split and --split-size to force splitting. - While opening files for reading splitted files are detected automatically. wwt v0.11a r339 - 2009-11-02 - wwt "LIST --mixed": output format changed. - New option --progress: enable progress counter independent of verbose level. - wdf2iso + iso2wdf: - Both accept any files as input. If the input is an ISO or a WDF+ISO than the file is scrubbed (controlled by optiond --psel snd --raw). - New option --preserve: preserves file times - New command: wit COPY source... dest -> converting and scrubbing. - wwt DUMP --long --long: Dump a memory layout map for each disc. - wwt DUMP --long --long --long: Dump a memory layout map for whole WBFS. wwt v0.12a r364 - 2009-11-05 - Bug fix showing the progress counter. - Bug fix in libwbfs/wbfs_trim() -> "ADD --trunc" and "TRUNCATE" failed. - wit DUMP --long: Dump a memory map. - wdf2iso + iso2wdf: print progress infos. - New ISO source alternative: /path/to/WBFS_FILE/SELECTOR (see doc) - New wit command: COPY: Copy and convert ISO images. - New wit command: SCRUB: Scrubs ISO images. wwt v0.13a r383 - 2009-11-06 - Option --cache removed: Cache is activated when needed. - Bug fix: "wit copy --remove wbfs/selector" removes disc from WBFS. - Bug fix: wit SCRUB: output file format was controlled by options. - wwt EXTRACT: Can extract to wbfs files. - wwt ADD: Accept wbfs files as input (wbfs to wbfs copy) - New tool: iso2wbfs: Converts ISO images into a splitted WBFS files. wwt v0.14a r388 - 2009-11-08 - Progress info shows copy rate in MiB/sec too. - Buf fix: damaged WDF file if copying from WDF to WDF with --raw. - wwt CHECK: check WBFS for block errors (report only, no repair yet). wwt v0.15a r402 - 2009-11-10 - Option --progeess has now a short brother: -P - Bug fix: iso2wbfs had produced ISO images instead of WBFS. - Bug fix: wwt EXTRACT --wbfs did not work. - wwt EDIT (not documented): manipulate block assignments (EXPERIMENTAL!). I need the EDIT command to make invalid WBFS for testing the CHECK command. - wwt ID6 --long: print list in format WBFS_FILE/ID6 (wbfs+selector). - wwt CHECK improved. wwt v0.16a r428 - 2009-11-15 - wwt DUMP layout redesigned. - libwbfs: free blocks table bug fixes: - Fix the free block table while formatting or loading - Allocation of free blocks behind 32 bit boundaries - Fix table if WBFS if full while adding a game. - I propagate libwbfs v1 (v0 prior). - bug fix: progress info failed if writing splitted files. - wwt ADD/UPDATE/EXTRACT/REMOVE/TRUNCATE: A CHECK is done automatically. The WBFS will be ignored if problematic errors are detected. --force: Print messages but ignore result of the check and continue. --no-check: Disable the automatic check. - wwt ADD/UPDATE: Cleanup to previous state if the disc is full. - wwt REMOVE: new option: --no-free: do not free blocks. - wwt CHECK: new option: --repair=mode: fix the detected errors. THIS OPTION IS EXPERIMENTAL! - New wwt command: REPAIR: Shortcut for: CHECK --repair=fbt (fbt = Free Blocks Table) THIS COMMAND IS EXPERIMENTAL! wwt v0.16b r431 - 2009-11-15 - wwt EXTRACT and REMOVE denied options --force and --no-check. - cygwin: REPAIR can't write unaligned free blocks tables. wwt v0.17a r454 - 2009-11-18 - wwt ADD --ignore: Ignores non exsting sources without message. - wwt DUMP: show memory range of each inode. - New command: wit DIFF: Compare ISO images in raw or scrubbed mode. EXPERIMENTAL, because the DIFF command is not testet very well yet! - wwt EXTRACT + wit COPY/DIFF: Handle '%'-escapes for output file name. - New option --esc: Define an alternative escape character, default is '%'. - Bug fix: Wrong name scheme for splitted WBFS files. - Some minor bugs fixed. wwt v0.18a r465 - 2009-11-22 - Bug fix: Wrong temp filename while creating an splitted WBFS. - Default split size is now 4GiB-32KiB for WBFS and 4GB for all other files. - wwt CHECK -ll: Print an additional dump if errors found. - wit SCRUB: Allow type conversion. - new commands: wwt RENAME+SETTITLE: Set ID and title of discs [EXPERIMENTAL]. - IMPORTAND BUG FIX in libwbfs/wiidisc: All scrubbing operations including adding to a WBFS could loose sectors. wwt v0.19a r491 - 2009-11-27 - New ADD option: --sync: Synchronize: remove and add until WBFS contains the same discs as source list. - New command: wwt SYNC: Abbreviation for: ADD --sync - New commands: wit RENAME+SETTITLE: Set ID and title of discs [EXPERIMENTAL]. - New command: wit MOVE: move/rename iso files. - MAC bug fix: segmentation fault if formatting a drive. - Bug fix: Interrupt possible while processing a source directory. wwt v0.20a r504 - 2009-12-05 - wwt FIND -l: List all instead of only WBFS partitions. - Some minor bug fixes. - Improved text output. wwt v0.21a r520 - 2009-12-09 - New command: wwt PHANTOM: add a phantom discs (fast, for tests only). - libwbfs: I have implemented a little ID6 cache for faster disc access and less IO when searching discs. - CYGWIN bug fix: Using mixed reading and writing on files opened with open() fails and write sometimes to wrong file positions (reproducible). Switching to fopen() based IO works fine. - Docu of wwt+wit RENAME+SETTITLE. wwt v0.21b r524 - 2009-12-13 - Corrections of inline and offline docu. - New: FAQ.txt (first steps) wwt v0.22a r535 - 2009-12-25 - New options: --include and --include-path: include only given discs. - New "wit COPY" option: --update: copy only to non existing files. wwt v0.23a r544 - 2009-12-31 - Formatting will clear all inodes. That gives undelte a better chance. In respect to sparse files the inodes will be read before and only zeroed if non zero data is found. - CYGWIN: The filenames beginning "x:/" will be replaced by "/cygdrive/x/". wwt v0.24a r549 - 2010-01-03 - Suppress a read error if reading behind end of file while creating a growing wbfs (copy to wbfs file with a sinlge disc). - If the destination path of a copy command contains at least 1 valid %-escape conversion than the directory path will be created automatically. - CYGWIN bugfix: Unclear bug while rename "x:/" to "/cygdrive/x/". Now we have a small memory leak (The original filename is not freed). - Script 'install.sh' use now the system command 'install'. wwt v0.25a r558 - 2010-01-04 - wwt REMOVE: Print id6 and (that's new) title of removed discs. - wwt EXTRACT+REMOVE: No warning if parameters are given, but no disc found because of exclude and/or include lists. - New option: --DEST (-D): Works like --dest (-d), but the directory paths of the destination files will be created automatically. wwt v0.26a r569 - 2010-01-05 - cygwin: stdout and stderr use windows line ending (CR+LF). - Allow german umlaut in destination file names. - Bug fix: Option --include-path was only processed if also option --exclude-path was set. - The local title files contain now all titles and not only the local modifications. This is good for cygwin which do not support automatic language detection. Just rename 'titles-XY.txt' to 'titles.txt'. wwt v0.27a r579 - 2010-01-09 - Bug fix: Problems while creating a directory path. - Option --no-utf-8 did not work, all titles were trash. - Option --no-utf-8 is now the default for cygwin. This is needed to allow german umlauts in filebnames. - wwt ADD: Add files in alphabetic order and print iteration counter. wwt v0.28a r596 - 2010-01-15 - Little optimization for libwbfs add_disc(): Read only needed wii sectors from iso and fill others with zeros. This makes adding faster and avoids reading behind end of file. This is needed for reading from a pipe. - New error code: JOB_IGNORED: Set if a disc is ignored while adding a game. - wwt ADD: adding to more than one WBFS failed since v0.27a. - wit COPY+SCRUB+MOVE: Process files in alphabetic order and print iteration counter. - Bug fix: wwt LIST: Not all discs were shown if an invalid disc was found. - Decompose unusual unicode characters (remove accents...) in title database. wwt v0.29a r606 - 2010-01-22 - wwt ADD: Adding a complete WBFS is optimized and much faster now. - Bug fix: Option --preserve didn't work. - wwt+wit FILETYPE: Print region info if option --long is set twice. wwt v0.30a r613 - 2010-01-30 - wwt+wit FILETYPE: Print scrubbed size if option --long is set twice. - New command: wit ISOSIZE: Print scrubbed ISO sizes in up to 4 aspects. wwt v0.31a r618 - 2010-01-31 - wwt+wit FILETYPE: Print table header. - wwt FORMAT: new option: --recover: Format a WBFS in recover mode. The recover feature is EXPERIMENTAL! wwt v0.32a r632 - 2010-02-14 - wwt+wit: New environment variable: WWT_LANG: Define a default language. - wwt+wit: New option: --lang= : Define the working language. - wwt FORMAT --recover: Little optimizations. - Bug fix: Enable cache for all commands if reading from a pipe. wwt v0.33a r659 - 2010-03-01 - Support of the new extended WBFS inodes with the data records 'itime', 'mtime', 'ctime', 'atime' and 'load_count'. - ADD updates itime, mtime, ctime and atime. mtime is taken from source. - EXTRACT updates atime. mtime is copied to destination file. - RENAME+SETTILE @INODE updates ctime and atime. - RENAME+SETTILE @ISO updates mtime, ctime and atime. - LIST may show one of the time values (-ll, --*time, --time=mode) - DUMP show all times if disc dump is enabled (--long). - wit+wwt LIST: The new options --itime, --mtime, --ctime, --atime and --time=modelist will force output of a time stamp. The meaning of --long is changed. - Option --sort= supports new modes 'DATE', 'ASCENDING' and 'DESCENDING'. - New wwt command: LIST-LL or LLL: Abbreviation of 'LIST -ll'. - New wit command: LIST-LLL or LLLL: Abbreviation of 'LIST -lll'. - Bug fix: wit LIST: The WBFS file size was listed instead the ISO size. wwt v0.34a r691 - 2010-03-11 - New timestamp: 'dtime' is set when a disc is deleted. - wwt FORMAT: If formatting a block device empty inodes with empty but valid extended inode infos are written and the dtime is set. - wwt PHANTOM: Setup extended inode info (time stamps + ...) too. - wwt CHECK/REPAIR: new mode: --repair=inode: Setup all missing inode infos. - New command: wwt TOUCH: Set timestamps of inode info (created if not exist). Supported time options: --itime --mtime --ctime --atime --set-time=time - All tools can write to a block or character device if --overwrite is set. - wwt FIND --quiet: report only via return status if a WBFS is found. - The split size for WBFS and ISO is now rounded down to a multiple of 32 KiB. Any split sizes are allowed for WDF. - wwt bug fix: If extracting to WBFS the extension '.wbfs' was not added. - New wwt DUMP option: --inode: show status of all inodes (deleted discs too). - libcrypto is now statically linked, so wwt runs on older linux systems. - wwt+wit FILETYPE: Support of option --no-header - Test script test-ADD+EXTRACT.sh runs again. - Bug fix: Sometimes reading an ISO from a WBFS runs into "Not a ISO image". wwt v0.34b r701 - 2010-03-12 - Bug fix: Reading from a WBFS with exact one discs without a disc selector is possible again. - Bug fix: Progress information is also printed if extracting to wbfs files. wwt v0.35a r713 - 2010-03-14 - Bug fix: The "wwt TOUCH" command didn't accept most of the allowed options. - wwt ADD: New option --newer: Copy only newer files if mtime of source and destination are available and non zero. - RENAME+SETTITLE: Timestamps are only set if ID or title are really changing. - Doumentation has been improved a little bit. wwt v0.36a r728 - 2010-03-19 - Option --sort=key: new keys: 'ITIME', 'MTIME', 'CTIME' and 'ATIME'. - wwt+wit LIST: Support of multiple time columns. - wwt+wit LIST+ERROR: new option --sections: print machine readable output devided into sections "[...]". Each section has lines like "name=value". - Makefile: Changed some lib settings (explicit naming of libcrypto removed). wwt v0.37a r753 - 2010-03-26 - wwt: new command: ANALYZE: Analyze files and partitions for WBFS usage. It try to find existing WBFS structures and make calculations for new WBFS. - Check WBBS header - Search INODE-INFO data (includes copy of WBFS header) - Search discs for valid ID6 and MAGIC. - Make example calculations for different sector sizes. All results are printed as table with the main geometry data. - wwt INIT: - New option: --wss (Wbfs Sector Size): Defines the WBFS sector size. - The option --sector-size (defines the HD sector size) was replaced by the more handy --hss (Hd Sector Size). The old option is still allowed. - If option --recover is set the command ANALYZE is called to determine the values of --hss and --wss if not set before. This points should complete WBFS recovering. - For the ANALYZE command I have written a complete new function to calculate the WBFS geometry (outsourcing of the calculation). If formatting a drive this new function is called to compare the results with the old calculation. If there are differences the program stops with an assertion failure. ** Please tell me such errors! ** wwt v0.38a r769 - 2010-03-28 - Some dtime improvements. - wwt+wit: Option -C is not longer the short version of option --trunc. - CISO support (EXPERIMENTAL): - wdf-dump will also dump the structure and memory map of CISO files. - wdf-cat will copy the extended ISO to standard output. - On all places where a plain ISO is allowed as source file a CISO is allowed too. - To force CISO-output use option --ciso or file type ".ciso" or ".wbi". wwt v0.38b r771 - 2010-03-28 - Bug fix for wwt INIT: Wrong assertion while comparing old and new calculation for WBFS geometry. wwt v0.39a r782 - 2010-03-29 - Bug fix: New CISO files > 4 GiB have been truncated (modulo 2^32 error). - Character devices are allowed for WBFS. - wwt --auto: If the file /proc/partitions is not found, than all devices named '/dev/sd*' and '/dev/rdisk*' are scanned for WBFS. If scanning of '/dev/rdisk*' fails then also files named '/dev/disk*' are scanned. Using character devices '/dev/rdisk*' will speed up wwt on apple computers. wwt v0.40a r790 - 2010-03-31 - Cache handling (pipe support) improved. Discs with update partitions are problematic (some discs needs a 256 MiB cache). Try --psel=game to ignore update partitions. The CYGWIN version has real problems with pipes. - Bug fix: Option "--ciso" was not recognized. - New test script: scripts/test-wwt+wit.sh - test "wwt INIT" with different HD sector sizes - test "wwt ADD" with ISO, CISO, WDF, WBFS - test "wwt EXTRACT" to ISO, CISO, WDF, WBFS - test "wit COPY" (convert) to ISO, CISO, WDF, WBFS wwt v0.41a r824 - 2010-04-16 - New escape sequence for output file names: %Y = Extended filename: A shortcut for '%T [%I]' (no file extension) - wit DUMP: new option --files= (-F): dump a list of files. - New command: wit ILIST: List all files from ISO images. - New command: wit EXTRACT: Extract all files from ISO images. This is a first implementation or better a proof of concept. - New option: --files=rules: Define a rule list as selector for ISO file operations. A semicolon separate single items. Each item must begin with '+' (allow) or '-' (deny). Multiple usage of the option is allowed. This options is used by the commands DUMP, ILIST and EXTRACT. See file "wit.txt" section "Selecting files with --files=rules" for more details. - Bug fix: Creating directories (--DEST) with absoulte paths will now work. - New wit option: --rdepth: Set the maximum recurse depth for option --recurse in the range 0..100. The default depth is 10. - New param for wwt+wit LIST --section: used_blocks= (1 block = 32 KiB) wwt v0.42a r846 - 2010-04-19 - Bug fix: wit option -C was not recognized. - Bug fix: Print multiple time stamps in listing works now. - wit ILIST rewritten. It supports now --sort= - wit EXTRACT rewritten. All needed files for SNEEK are extracted. - New wit option: --pmode=default|auto|none|point|ident|name The option defined how the partition type is used to prefix the file path. - The new wit option --sneek is an abbreviation of --psel=data --pmode=none. It also suppress creating files that SNEEK don't need. wwt v0.42b r871 - 2010-04-21 (repository only) - The wiidisc interface now reads only well aligned (multiple of 512) data. - When creating a CISO the blocksize is now always a power of 2. - wwt+wit FILETYPE detect now extracted ISO file systems (FST). wwt v0.42c r873 - 2010-04-21 (repository only) - Bug fix for wiidisc aligned reading (since v0.42b). wwt v0.43a r957 - 2010-04-30 - wwt+wit FILETYPE will detect 'boot.bin', 'fst.bin' and DOL files too. - wit DUMP prints internal info of 'boot.bin', 'fst.bin' and DOL files too. - "wit COPY source_dir output_file" is able to compose a fake signed ISO image from a file system. wwt v0.44a r973 - 2010-05-02 - wit bug fix: Option --enc was not accepted. - ISO composing supports now UPDATE, DATA and CHANNEL (new!) partitions. - wit DIFF: If option --files= (-F) is set then the ISO images (real or virtual FST) will be compared on file level. The option --files= declares a file filter. - Progress counter for "wit EXTRACT" enabled. - Option --files= (-F): The macros are redifined as positive list. Now we have the following macros: =base =nobase =disc =nodisc =sys =nosys =files =nofiles =wit =wwt =sneek - wit COPY can decrypt or encrypt ISO images on the fly when copying in scrubbed mode. This does not change the signature. - Fix some troubles with new cyygwin release 1.7.5-1. The main problem was file path creation with absolute path names. wwt v0.45a r1012 - 2010-05-05 - To avoid troubles with platform dependent openssl support I have integrated the SHA1 sources from openssl into WWT. - The new command "wit VERIFY" checks the hash signatures of all needed sectors (keyword "scrubbed"). All five hash levels (H0..H4) are verified. This means 64 AES decryptions and 1029 SHA1 calculations for each MiB. wit v0.46a r1043 - 2010-05-13 - The main name have changed from "Wiimms WBFS Tool" to "Wiimms ISO Tools". The following things are changed too: - '/usr/local/share/wwt/' moved to '/usr/local/share/wit/' - Environment variable WWT_LANG moved to WIT_LANG. - wwt INIT --recover: recover also previous deleted files. Discs with collisions (use blocks that other discs also use) are never recovered. - New command: wwt RECOVER: Works like "wwt INIT --recover", but only with already WBFS formatted files => not formatting, only recovering. "wwt RECOVER" can be used with the option --test to see what happen. - wit VERIFY: Output messages redesigned. Verbosity can be controlled in five levels from -qq up to -vv. - The new option --limit sets a limit for VERIFY error messages. - New command: wwt VERIFY: works like "wit VERIFY" but with wwt interface. It also supports options --remove and --no-free for removing or dropping invalid discs. - Docu of wit+wwt VERIFY and "wwt RECOVER" added. - Minor bug fix for wwt CHECK: It have shown 'free blocks' errors for some removed discs if this the discs removed with a non wwt tool. - CGYWIN release: The new batch file 'run-cmd-as-admin.bat' starts a cmd window in administrator mode. This should simplify the work with wwt. wit v0.47a r1106 - 2010-05-22 - ID checking redesigned, underscore is now an allowed character. - Command line parsing rewritten: Commands and command specific options are defined in a special tool (C file 'gen-ui.c'). If running this tool it generates C source for all tools to analyse commands and options and to print help messages. - Included help was improved: wit and wwt supports now 'HELP command'. The output is now aligned to the current terminal width. - The documentation of all new options is now complete. - Bug fix: wit has shown wrong file size for splitted ISO images. wit v0.48a r1145 - 2010-05-29 - wit SCRUB: Option --enc= available to encrypt and decrypt disc images. - Bug fix for wit COPY: Creating a WBFS file with FST as source failed. - Bug fix: If reading from a CISO a minimal file size is now set. - Composing bug fix: Forgotten to set offset 0x4fffc to value 0xc3f81a8e. - New option --id=id: Modify ID in disc header, boot.bin, ticket.bin and tmd.bin when composing a Wii ISO image. - New option --name=name: Modify dics title in disc header and boot.bin when composing a Wii ISO image. - New option --modify=NONE,DISC,BOOT,TICKET,TMD,ALL,AUTO: decides which of disc header, boot.bin, ticket.bin and/or tmd.bin is modified when using the options --id=id or --name=name. - New option --region=JAPAN,USA,EUROPE,KOREA,FILE,AUTO: Set region when composing a Wii ISO image. Unsigned numbers are also allowed. - New option --ios=number or --ios=high-low: Define system version (IOS) within TMD when composing a Wii ISO image. - TMD and TICKET (=new) will be fake signed if composing a disc. - All UTF-8 characters with code >= 0x80 are allowed in filenames. wit v0.48b r1164 - 2010-06-01 (repository only) - Bug fix: If reading a very small WBFS file the old and buggy calculation in libwbfs for the free tables size results in zero. Accessing the non existent table forces a segmentation fault. For compatibility reasons the calculation can't be changed. - Bug fix: wit DUMP had always reported encrypted partitions. - Composing bug fix: Copy only really needed data from boot.bin if file header.bin is missed. wit v0.49a r1177 - 2010-06-06 - Built in help improved. ******************************************************************************* ******* END ******* ******************************************************************************* wit-2.22b/templates/wwt.txt0000644000014500017510000013234212167616640015267 0ustar michaelstaff @@MODULE(head.txt)@@ This files describes the main tool 'wwt'. @@MODULE(content.txt)@@ ******************************************************************************* ******* Overview about this document ********* ******************************************************************************* Contents: Output of 'wwt --help' @file Commands in detail Processing partitions Processing ISO files Processing ID6 parameters Processing exclude options Processing title db Processing split options Processing size options Some options in detail Hidden options (for testing) Environment variables Signals ******************************************************************************* ******* Output of 'wwt --help' ********* ******************************************************************************* @@EXEC(./wwt --width 80 --help)@@ ******************************************************************************* ******* @file ******* ******************************************************************************* If a parameter beginns with '@' the text behind that '@' is a filename. Each line of the file is taken as a parameter (not option, not command). Each line may terminate with LF or CR+LF. Handling of '@' is *not* recurse. The special filename '-' means: read from standard input (stdin). ******************************************************************************* ******* Commands in detail ******* ******************************************************************************* Command abbreviations are allowed as long as they are unique. The commands are listed in alphabetic order: ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 ADD)@@ ~ [2do] copy to homepage The ADD command adds all given ISO images to all given WBFS partitions. The filename '-' means 'read from stdin'. The three options --all, --auto and --part decides which partitions will be modified (see section "Options in detail: partitions" for details). If a given file does not exist or isn't a ISO image (maybe shrinked with WDF) an error message will be printed. The option --ignore suppresses this message. ADD accept plain ISO files, WDF ISO files, WBFS files and directories as source. For a directory each valid ISO file is used as source. The option --recurse allow a definition of a directory which is search recursive. Existing WBFS discs will be ignored if --update is set. They are only over- written if the option --overwrite is set. After successfull operation and if --remove is set, the ISO images will be removed from the source file system. If option --sync is set than before adding all discs that are not part of the soruce list are removed from the WBFS. The option --sync includes the option --update. After operation the WBFS contains exactly the ISO images which ae defined in the source list. If the option --newer is set and source and destination 'mtime' (last modi- fication time) for the current job are both available and non zero, then the options --update and --overwrite are ignored and the destination is over- written if the source is newer (younger) than the destination. If the --quiet option is set only error messages will be printed. If the --verbose option is set run time calculations will be made too. If the --verbose option is at least twice a progress status will be shown. If the --test option is set the programm does nothing, neither copying nor removing. Instead it will print some 'WOULD ...' messages. Before modifying the WBFS a check (see CHECK) is done. If there are any problematic errors detected the WBFS is ignored. If the option --force is set, the test is done but the result is ignored. The option --no-check disables this automatic check. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. JOB_IGNORED : a source file is ignored. SYNTAX ERROR : at least one syntax error in command line found. MISSING PARAMETERS : no parameters (iso images) given. NO WBFS FOUND : no WBFS partition found. TO MUCH WBFS FOUND : 2 to more no WBFS partition found but --all missed. WRITE ERROR : error while writing a WBFS. REMOVE ERROR : error while removing a disc from a WBFS. READ ERROR : error while reading an ISO image or a WBFS. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 ANALYZE)@@ ~ [2do] copy to homepage The ANALYZE command analyze files and partitions and prints out the geometry. The files are not modified and opened readonly. First ANALYZE looks into the file and search for old WBFS information. Second it makes a calculation like the INIT command for different sector sizes. All data is printed as a table: ANALYZE x.wbfs ------------------------------------------------------------------------------------ HD SECTORS WBFS SECTORS DISCS (all values in hex) WBFS total sec total sec max inode NAME magic vrs num size num size num size ADDITIONAL INFORMATION ------------------------------------------------------------------------------------ HEADER: ok 1 746a5288 200 e8d4 1000000 1f4 600 WBFS header scanning INODE-TIM: ok 1 746a5288 200 e8d4 1000000 1f4 600 2010-03-24 18:50:50 n=500 INODE-CNT: ok 1 1d1a94a2 800 e8d4 1000000 7f4 800 2010-03-24 18:50:47 n=1661 CALC 512: - 1 746a5288 200 e8d4 1000000 1f4 600 calculation of init function CALC 1024: - 1 3a352944 400 e8d4 1000000 3f4 800 " but sector-size=1024 CALC 2048: - 1 1d1a94a2 800 e8d4 1000000 7f4 800 " but sector-size=2048 CALC 4096: - 1 e8d4a51 1000 e8d4 1000000 ff4 1000 " but sector-size=4096 ------------------------------------------------------------------------------------ The columns (all numbers are printed in hex): NAME Short name of the analyze mode. - HEADER: Result of header analyzing (first 12 bytes). - INODE-*: Result of INODE-INFO searching. - INODE-TIM: The newest INODE found. - INODE-CNT: The inodes with the largest equal-inodes-count. - INODE-1ST: The first inodes found if not already printed. - DISCS: Result of searching discs in the WBFS management area. - CALC #: Example calculation of the INIT function. (see option --long) - OLD #: Example calculation with the old buggy algorithm. (see option --long) WBFS magic: "ok" if a WBFS magic was found. WBFS vrs: WBFS version. HD SECTORS total num: Total number of HS sectors of the file/partition. HD SECTORS sec size: The harddisk sector size of the file/partition. WBFS SECTORS total num: Total number of WBFS sectors. The maximum if 0x10000 = 65536. WBFS SECTORS sec size: The WBFS sector size of the file/partition. DISCS max num: Maximal possible discs. DISCS inode size: The disc info size for a single disc. ADDITIONAL INFORMATION: Additiional informaton. - INODE: most current date and number of equal inodes infos found. - DISCS: number of discs found in the management area of WBFS. The output can also be used to setup parameters for the INIT command. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 CHECK)@@ ~ [2do] copy to homepage Command CHECKS checks WBFS partions for block errors in 5 categories: - Find discs with invalid blocks. - Find discs with no valid blocks. - Find discs which uses same blocks. - Find free blocks that marked as used. - Find used blocks that marked as free. If the option --repair is set then the detected error are fixed. Fixing the free blocks table is the last action. Be carfull because discs will be removed. The repair modes in detail: - | NONE : reset = ignore previous settings F | FBT : repair free blocks table I | INODES : setup all missing inode infos STD | STANDARD : default setting: FBT,INODES RI | RM-INVALID : remove discs with invalid blocks RO | RM-OVERLAP : remove discs with overlaped blocks RF | RM-FREE : remove discs with free marked blocks RE | RM-EMPTY : remove discs with no valid blocks RA | RM-ALL : remove all discs with errors * | ALL : repair all All keyword can be prefixed by + : enable repair mode (default) - : disable repair mode = : enable repair mode and disable all others Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. NO WBFS FOUND : no WBFS partition found. TO MUCH WBFS FOUND : 2 to more no WBFS partition found but --all missed. WBFS INVALID : An invalid WBFS found (WBFS with errors) ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 DUMP)@@ ~ [2do] copy to homepage The DUMP command dumps out the data structure of all WBFS. data. The three options --all, --auto and --part decides where partitions will be searched (see section "Options in detail: partitions" for details). If at least one parameter ('wbfs_partition') is given ther option --all well be enabled and all names are insterted into the partition list like --auto. This enables an easy lookup like 'wwt find *.wbfs'. DUMP will dumps the data structure of all WBFS partitions found. If the option --long is set then all Wii discs of each WBFS partition will be dumped too. If option --long is set at least twice an additional memory map for each disc will be printed. If --long is set at least three times an additional memory map for the whole WBFS is printed at the end. Failures (overlapped areas) are marked with '!'. If the option --inode is set, all inodes (invalid inodes with with proper inforamtions too) are shown. This implies at least one --long. When --long is four or more times the option --inode is set automatically. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. READ ERROR : error while read a file given by option --part. NO WBFS FOUND : no WBFS partition found. TO MUCH WBFS FOUND : 2 to more no WBFS partition found but --all missed. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 EDIT)@@ ~ [2do] copy to homepage EDIT is a dangerous command. It let you (de-)activate the disc slots and edit the block assignments. Exact 1 WBFS must be specified. All parameters are sub commands. Modifications are only done if option --force is set. ********************************************************** ***** WARNING: This command can damage your WBFS!! ***** ********************************************************** Each parameter is one sub command. The case of commands is ignored. After editing a check of the WBFS is made and a status printed if errors found. The general subcommand syntax is: subcommand=parameter[,parameter]... List of subcommands: RM=a,b-c,... R=a,b-c,... Remove disc in slot 'a' or the slot range 'b-c' from wbfs. The slot is only marked as free, no blocks are freed. EDIT does not allow undefined slot numbers. The indices are null based. ACT=a,b-c,... A=a,b-c,... Activate disc in slot 'a' or the slot range 'b-c' from wbfs. The slot is only marked as activated without any tests. EDIT does not allow undefined slot numbers. The indices are null based. INV=a,b-c,... I=a,b-c,... Like 'ACT' but the slot is additionally marked as invalid. FREE=a,b-c,... F=a,b-c,... Modify the free blocks table and mark the single block 'a' or the range of blocks 'b-c' as free. EDIT does not allow undefined block numbers. USE=a,b-c,... U=a,b-c,... Modify the free blocks table and mark the single block 'a' or the range of blocks 'b-c' as used. EDIT does not allow undefined block numbers. ID6=a:b,c-d:e,... For the game with ID6: Set ISO block 'a' to WBFS block 'b' or set ISO blocks 'c-d' to WBFS blocks 'e...'. If 'e' is zero then set ISO blocks 'c-d' to zero (=unused). EDIT does not allow undefined block numbers. Note: The block size for all sub commands is always the WBFS block size, but never the ISO block size. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. READ ERROR : error while read a file given by option --part. NO WBFS FOUND : no WBFS partition found. TO MUCH WBFS FOUND : 2 to more no WBFS partition found but --all missed. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 ERROR)@@ ~ [2do] copy to homepage The command ERROR translate an exit code to a text message. Without parameters print all error names and error messages. With a given 'error_code' the error message that belongs the number is printed to stdout and the program exits with exit status is 0 (success). If the error_code is unknown or invalid the error message is '?' and the program exits with exit status is 1 (failure). Without 'error_code' a list of all error codes is printed. The output contains three columns separated with colons. The format is: error code ':' error name ':' error messages If the option --sections is set, then the layout is completly changed to a sections base output. This output is machine readable. The output looks like: [error-CODE] code=ERROR_NUMBER name=ERROR_NAME text=ERROR_TEXT Usual ERROR/EXIT CODES: 0 == OK : all done. SYNTAX ERROR : at least one syntax error in command line found. SEMANTIC ERROR : unkown error_code given. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 EXCLUDE)@@ ~ [2do] copy to homepage The command 'EXCLUDE' builts the exclude data base and prints the result to stdout. The handling of the additional files works like the --exclude option. The section "Processing exclude options" explains the options in detail. Usual ERROR/EXIT CODES: 0 == OK : all done. SYNTAX ERROR : at least one syntax error in command line found. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 EXTRACT)@@ ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 FILETYPE)@@ ~ [2do] copy to homepage The command 'FILETYPE' prints for each given file one status line like: FILETYPE ID6 SIZE_MIB REGION SPLIT FILENAME Columns 'ID6' and 'SPLIT' are only printed if option --long is set. For non ISO images the ID6 is '-'. If the file is splitted than column 'SPLIT' shows the number of split files instead of '-'. Columns 'SIZE_MIB' and 'REGION' are only printed if option --long is set at least two times. 'SIZE_MIB' is the calculatet size of a scrubbed ISO image. For this all used sectors of a ISO image are counted. The usage depends of the options --psel and --raw. Filetypes are: NO-FILE : No file found DIR : Not a file but a directory WBFS : A WBFS WBFS/ : A WBFS used like directory with id6 or index or pos WDF+WBFS : A WBFS shrinked with WDF (this make no sense expect transporting) ISO : A ISO image. WDF+ISO : A ISO image shrinked with WDF. WDF : Any other WDF file (not WBFS or ISO) WIA : A ISO image packed into the WIA (Wii ISO Archive). OTHER : Any other file Remark: The test for WBFS is poor and must be improved. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. READ ERROR : error while reading a file. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 FIND)@@ ~ [2do] copy to homepage The FIND command makes a quick search for WBFS partitions: it scans only the WBFS-Header. The three options --all, --auto and --part decides where partitions will be searched (see section "Options in detail: partitions" for details). If at least one parameter ('wbfs_partition') is given the option --all will be enabled and all names are inserted into the partition list like --auto. This enables an easy lookup like 'wwt find *.wbfs'. Without option --long only a list of found WBFS partition will print out, each partition in one line. With a single --long option an aligned list of all partitions, wbfs or not, is printed with 5 colums: type : 'PLAIN' for plain files or 'BLOCK' for block devices. wbfs : 'WBFS' or '--' disc usage : allocated size in MiB. size : file size in MiB. file : the given path name of the file. The option --no-header suppress the output of header and footer. With a double (or more) --long option the layout is changed: type : 'PLAIN' for plain files or 'BLOCK' for block devices. wbfs : 'WBFS' or '--' disc usage : allocated size in MiB. size : file size in bytes. full path : the real path name of the file. The option --no-header suppress the output of header and footer. The 'disc usage' is smaller than the 'file length' if the file contains holes (sparse files). For block devices it is always printed as zero. If the option --quiet is set then FIND is absolut quiet. If at least one of the examined partitions or files is a valid WBFS then the return status is 'OK' (0). If none is a WBFS the return status is 'NO WBFS FOUND' (not null). Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. READ ERROR : error while read a file given by option --part. NO WBFS FOUND : no WBFS partition found. TO MUCH WBFS FOUND : 2 to more no WBFS partition found but --all missed. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 FORMAT)@@ ~ [2do] copy to homepage The command FORMAT format block devices and plain files with a WBFS. All data on the destination will be lost. The command works in test mode if the option --test is set or the option --force is not set. So you must set the option --force to format. The option --size is irrelevant for already existing files. Non existing files will be created as sparse files. Therefor the option --size is needed. The option needs a integer number and an optional factor sign. The option --hss defines the HD sector size of the WBFS partition. The default is 512 bytes and most other tools and USB loaders will only support this 512. But the wbfs framwork supports any value >=16 but it must be a power of 2. WWT forces values >= 512. The option --wss defines the WBFS sector size. If not set the INIT function calculates a good value. The parameters of the size options --size and --sector-size are discussed in the section "Processing size options". If the option --recover is set, the WBFS will be formatted in recover mode: - If --hss or --wss is not set then an internal call to ANALYZE (output suppressed) is made to determine the values. The data of the first virtual row is used to override the default values of --hss and --wss. - Only the header of the WBFS is written. The inodes are not cleared. - All empty discs slots are marked as used. - All WBFS blocks are marked as used. - A silent check and repair is done: - Drop discs with invalid magic or without ID. - Drop rescued discs with invalid block numbers. (--repair=RM-INVALID) - Drop rescued discs without any block. (--repair=RM-EMPTY) - Free unused blocks in the free blocks table. (--repair=FBT) - A verbose check is done (like "wwt check --verbose") to find and report other errors. WARNING: Before using "wwt INIT --recover" you should call "wwt ANALYZE" and control the output! See also: wwt RECOVER: Recover discs without reformatting. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. MISSING PARAMETERS : no parameters (iso images) given. WRITE ERROR : error while writing/formatting a WBFS. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 HELP)@@ ~ [2do] copy to homepage Usual ERROR/EXIT CODES: 0 == OK : all done without errors. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 ID6)@@ ~ [2do] copy to homepage The command 'ID6' lists the ID6 of all discs for each partition, one ID per row. The three options --all, --auto and --part decides where partitions will be searched (see section "Options in detail: partitions" for details). If neither --part nor --auto is set then the options --auto and --all are assumed. So the usage of 'id6' without options is easy. If --uniqe is set each game disc with same ID6, name, size and region is only printed once. The --unique option implies the --all option. The sort order can be set by the --sort option. Sort=none means, that the ID will be shown in order of the WBFS partition. The default sort order is 'ID'. If the option --long is set the output is "WBFS_FILE/ID6" for each game. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. READ ERROR : error while read a file given by option --part. NO WBFS FOUND : no WBFS partition found. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 LIST)@@ ~ [2do] copy to homepage The command 'LIST' lists infos of all discs for each partition, one disc per row. The three options --all, --auto and --part decides where partitions will be searched (see section "Options in detail: partitions" for details). If neither --part nor --auto is set then thr options --auto and --all are assumed. So the usage of 'list' without options is easy. Without --long the ID and the name are printed. With option --long the ID, size, region and the name are printed. The option --no-header suppress the output of header and footer. Printing of timestamps is enabled by the options --time, --itime, --mtime --ctime, --atime or when --long is set at least twice. --time=off disables time printing. All time options (not --long) supersede the previous options. The option --time take a comma separated list of the following keywords: OFF : Disable time printing. All other option enable time printing. ON : Enable time printing. SINGLE : Print only a single column (last time specified. MULTI : Print columns for all specified times. (default) I : Use itime (insertion time) for processing. M : Use mtime (last modicifaction time) for processing. (default) C : Use ctime (last staus change time) for processing. A : Use atime (last access time) for processing. NONE : Disable all 4 times above ALL : Enable all 4 times above DATE : Print time in format 'YYYY-MM-DD'. (default) TIME : Print time in format 'YYYY-MM-DD HH:MM'. MIN : Alternative keyword for 'TIME'. SEC : Print time in format 'YYYY-MM-DD HH:MM:SS'. *DATE : Short cut for '*,DATE'. '*' is one of 'I', 'M', 'C' or 'A'. *TIME : Short cut for '*,TIME'. '*' is one of 'I', 'M', 'C' or 'A'. *MIN : Alternative keywords for '*TIME'. *SEC : Short cut for '*,SEC'. '*' is one of 'I', 'M', 'C' or 'A'. With --mixed all discs of all partitions were mixed together. If --uniqe is set each game disc identified by ID6 is only printet once. The --mixed option implies the --all option. The --unique option implies the --mixed and the --all options. If the option --long is set three or more time together with --mixed then a WBFS table is printed at the top with a WBFS-Index ('WI') and the filename. The game table contains an additional column with this WBFS-Index. If the option --sections is set, then the layout is completly changed to a sections base output. This output is machine readable. The output looks like: [section_name-index] parameter=value parameter=value ... The sort order can be set by the --sort option. Sort=none means, that the ID will be shown in order of the WBFS partition. The default sort order is 'TITLE'. If available the name of the title database is used as game name. use the option -T0 to disable database titles. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. READ ERROR : error while read a file given by option --part. NO WBFS FOUND : no WBFS partition found. TO MUCH WBFS FOUND : 2 to more no WBFS partition found but --all missed. ------------------------------------------------------------------------------- COMMANDS: LIST-L | LL [wbfs_partition]... LIST-LL | LLL [wbfs_partition]... LIST-A | LA [wbfs_partition]... LIST-M | LM [wbfs_partition]... LIST-U | LU [wbfs_partition]... 'LIST-L' is a synonym for 'LIST --long'. 'LIST-LL' is a synonym for 'LIST --long --long'. 'LIST-A' is a synonym for 'LIST --long --long --all --auto'. 'LIST-M' is a synonym for 'LIST --long --long --all --mixed'. 'LIST-U' is a synonym for 'LIST --long --long --all --unique'. See command 'LIST' for options and details. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 PHANTOM)@@ ~ [2do] copy to homepage The PHANTOM commands adds multiple discs to WBFS partitions. The content of the discs is undefined, only the WBFS inode and the ISO header (first 256 bytes) are written to WBFS. The PHANTOM command is implemented for test purposes; it can fill a WBFS very fast with multiple discs with random size. The ID6 of phantom discs are 'PHT###', where '###' is the lowest unused decimal number. The syntax of each subcommand is: [ NUM 'x' ] SIZE ['m'|'g'] NUM defines a number of discs to add. NUM is a unsigned integer or a range like '2-5'. If a range is given, wwt add a random number of discs specified by this range. The default number is '1' SIZE defines the size of the discs in GiB. SIZE is a unsigned integer or a range like '1-9'. If a range is given, wwt calculates the real size as random number in the specified discs. If a 'm' (or 'M') is follows the size, SIZE is specified in MiB and not in GiB. Example: wwt PHANTOM 3-5x1-9 create 3, 4 or 5 discs, each with a random size between 1 and 9 GiB. Multiple subcommands are allowed. The program terminates the filling process automatically and without errors if the WBFS becomes full. Full means that are slots are used or that no more data space is left. If the data space runs out the last phantom will be cutted silently so that all data blocks in the WBFS are used. Before modifying the WBFS a check (see CHECK) is done. If there are any problematic errors detected the WBFS is ignored. If the option --force is set, the test is done but the result is ignored. The option --no-check disables this automatic check. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. READ ERROR : error while read a file given by option --part. NO WBFS FOUND : no WBFS partition found. TO MUCH WBFS FOUND : 2 to more no WBFS partition found but --all missed. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 RECOVER)@@ ~ [2do] copy to homepage The command RECOVER tries to recover presious removed discs. It recover only discs without block collisions (2 ore mor discs shares the same memory). Recovering work like this: - All empty discs slots are marked as used. - All WBFS blocks are marked as used. - A silent check and repair is done: - Drop discs with invalid magic or without ID. - Drop rescued discs with invalid block numbers. (--repair=RM-INVALID) - Drop rescued discs without any block. (--repair=RM-EMPTY) - Free unused blocks in the free blocks table. (--repair=FBT) - A verbose check is done (like "wwt check --verbose") to find and report other errors. See also: wwt FORMAT --recover: Format WBFS and recoverdiscs. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. MISSING PARAMETERS : no parameters (iso images) given. WRITE ERROR : error while writing/formatting a WBFS. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 REMOVE)@@ ~ [2do] copy to homepage The REMOVE command removes all discs identified by ID6 from all given WBFS partitions. The options --all, --auto and --part decides which partitions will be modified (see section "Options in detail: partitions" for details). Each parameter is scanned for an ID6. Possible formats are: '*' | '+' ID6 ID6=name name [ID6] ID6 anything A single '*' (must be escaped by shells) or '+' means 'all'. A 'name' part will be ignored. Please read section "Processing ID6 parameters" for details. The option --ignore suppresses error messages about not found disc images. If the --quiet option is set only error messages will be printed. If the --verbose option is set run time claculations will be made too. If the --test option is set the programm does nothing, neither copying nor removing. Instead it will print some 'WOULD ...' messages. If the --test option is set two or more times then only a normalized ID6 list is printed. For each ID6 one line is printed. If a destination filename is known 'ID=name' is printed, else 'ID6' alone. If the option --no-free is set then the disc is only marked as removed. The allocated blocks are not freed. After using --no-free you should use the command CHECK with --rapair=fbt to repair the free blocks table. Before modifying the WBFS a check (see CHECK) is done. If there are any problematic errors detected the WBFS is ignored. If the option --force is set, the test is done but the result is ignored. The option --no-check disables this automatic check. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. MISSING PARAMETERS : no parameters (ID6) given. NO WBFS FOUND : no WBFS partition found. TO MUCH WBFS FOUND : 2 to more no WBFS partition found but --all missed. WDISC NOT FOUND : disc not found on any WBFS partition. REMOVE ERROR : error while removing a disc from a WBFS. READ ERROR : error while reading an ISO image or a WBFS. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 RENAME)@@ ~ [2do] copy to homepage This command 'RENAME' may change the ID6 and/or the title of discs. It can change the information in the WBFS inode or the information in the ISO header or both (the default). The alternative command 'SETTITLE' modifies only titles. The advantage of 'SETTITLE' is, that it can modify all titles with 1 sub command. The syntax of a sub command is: id6=[new_id6][,new_title] 'id6' is the ID of the disc to change. The optional 'new_id6' is the new ID of the disc. The optional 'new_title' is the new title of the disc. @@MODULE(set-title.txt)@@ ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 REPAIR)@@ ~ [2do] copy to homepage Command REPAIR checks and repairs WBFS partions for block errors. By default errors in the 'free blocks table' will be fixed. See command CHECK for details. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. NO WBFS FOUND : no WBFS partition found. TO MUCH WBFS FOUND : 2 to more no WBFS partition found but --all missed. WBFS INVALID : An invalid WBFS found (WBFS with errors) ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 SETTITLE)@@ ~ [2do] copy to homepage This command 'SETTITLE' may change the title of discs. It can change the information in the WBFS inode or the information in the ISO header or both (the default). The alternative command 'RENAME' can also change the ID of discs. The syntax of a sub command is: id6=new_title 'id6' is the ID of the disc to change. If using '+' all discs are changed. The 'new_title' is the new title of the disc. @@MODULE(set-title.txt)@@ ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 SPACE)@@ ~ [2do] copy to homepage The SPACE command makes a quick search for WBFS partitions: it scans only the WBFS-Header. The three options --all, --auto and --part decides where partitions will be searched (see section "Options in detail: partitions" for details). If at least one parameter ('wbfs_partition') is given ther option --all well be enabled and all names are insterted into the partition list like --auto. This enables an easy lookup like 'wwt find *.wbfs'. The SPACE/DF command prints: size : file size in MiB. used : space used by discs in MiB. used% : space used by discs in percent. free : free space for discs in MiB. discs : number of wii discs / max number of discs file : the given path name of the file. With option --long the real path instead aa the given filename is printed. The option --no-header suppress the output of header and footer. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. READ ERROR : error while read a file given by option --part. NO WBFS FOUND : no WBFS partition found. TO MUCH WBFS FOUND : 2 to more no WBFS partition found but --all missed. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 SYNC)@@ ~ [2do] copy to homepage COMMAND: SYNC iso_image_path... 'SYNC' is the same as 'ADD --snyc'. The command 'SNYC' does not accept the options --update, --overwrite and --sync. See command 'ADD' for options and details. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 TITLES)@@ ~ [2do] copy to homepage The command 'TITLES' builts the title data base and prints the result to stdout. The handling of the additional files works like the --title option. The section "Processing title db" explains the options in detail. Usual ERROR/EXIT CODES: 0 == OK : all done. SYNTAX ERROR : at least one syntax error in command line found. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 TOUCH)@@ ~ [2do] copy to homepage The TOUCH command changes the time stamps in rhe WBFS inodes of all discs identified by ID6 from all given WBFS partitions. The options --all, --auto and --part decides which partitions will be modified (see section "Options in detail: partitions" for details). Each parameter is scanned for an ID6. Possible formats are: '*' | '+' ID6 ID6=name name [ID6] ID6 anything A single '*' (must be escaped by shells) or '+' means 'all'. A 'name' part will be ignored. Please read section "Processing ID6 parameters" for details. The option --ignore suppresses error messages about not found disc images. If the --quiet option is set only error messages will be printed. If the --verbose option is set run time claculations will be made too. If the --test option is set the programm does nothing, neither copying nor removing. Instead it will print some 'WOULD ...' messages. If the --test option is set two or more times then only a normalized ID6 list is printed. For each ID6 one line is printed. If a destination filename is known 'ID=name' is printed, else 'ID6' alone. If the option --no-free is set then the disc is only makred as removed. The allocated blocks are not freed. Aufter using --no-free you should use the command CHECK with --rapair=fbt to repair the free blocks table. The options --itime, --mtime, --ctime, --atime decides which time stamp is modified. All 4 options can be combined. If none of these options is set then all 4 time stamps are modified. The time stamps are set to the current time (beginning of command touch). With the option --set-time=time an other date can be set. The format of 'time' is one of the following (in terms of function strptime()): "%Y-%m-%d %H:%M:%S" "%Y-%m-%d %H:%M" "%Y-%m-%d %H%M%S" "%Y-%m-%d %H%M" "%Y-%m-%d %H" "%Y-%m-%d" "%Y%m%d %H%M%S" "%Y%m%d %H%M" "%Y%m%d %H" "%Y%m%d" "%s" Before modifying the WBFS a check (see CHECK) is done. If there are any problematic errors detected the WBFS is ignored. If the option --force is set, the test is done but the result is ignored. The option --no-check disables this automatic check. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. MISSING PARAMETERS : no parameters (ID6) given. NO WBFS FOUND : no WBFS partition found. TO MUCH WBFS FOUND : 2 to more no WBFS partition found but --all missed. WDISC NOT FOUND : disc not found on any WBFS partition. REMOVE ERROR : error while removing a disc from a WBFS. READ ERROR : error while reading an ISO image or a WBFS. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 SPACE)@@ ~ [2do] copy to homepage The SPACE command makes a quick search for WBFS partitions: it scans only the WBFS-Header. The three options --all, --auto and --part decides where partitions will be searched (see section "Options in detail: partitions" for details). If at least one parameter ('wbfs_partition') is given ther option --all well be enabled and all names are insterted into the partition list like --auto. This enables an easy lookup like 'wwt find *.wbfs'. The SPACE/DF command prints: size : file size in MiB. used : space used by discs in MiB. used% : space used by discs in percent. free : free space for discs in MiB. discs : number of wii discs / max number of discs file : the given path name of the file. With option --long the real path instead aa the given filename is printed. The option --no-header suppress the output of header and footer. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. READ ERROR : error while read a file given by option --part. NO WBFS FOUND : no WBFS partition found. TO MUCH WBFS FOUND : 2 to more no WBFS partition found but --all missed. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 TRUNCATE)@@ ~ [2do] copy to homepage The command TRUNCATE truncates WBFS to a minmal size. This is done by calculating the last used block within th WBFS. The WBFS is still valid and all modification may be done. Before modifying the WBFS a check (see CHECK) is done. If there are any problematic errors detected the WBFS is ignored. If the option --force is set, the test is done but the result is ignored. The option --no-check disables this automatic check. Usual ERROR/EXIT CODES: 0 == OK : all done without errors. SYNTAX ERROR : at least one syntax error in command line found. READ ERROR : error while read a file given by option --part. NO WBFS FOUND : no WBFS partition found. TO MUCH WBFS FOUND : 2 to more no WBFS partition found but --all missed. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 UPDATE)@@ ~ [2do] copy to homepage 'UPDATE' is the same as 'ADD --update'. The command 'UPDATE' does not accept the options --update and --overwrite. See command 'ADD' for options and details. ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 VERIFY)@@ ------------------------------------------------------------------------------- @@EXEC(./wwt help --width 80 VERSION)@@ ~ [2do] copy to homepage The command VERSION prints out the program version to standard out (stdout) and exit with status 0 (OK). The ouput line looks like: @@EXEC(./wwt version | sed 's/^/ /')@@ With option --sections the output is printed in a machine readable format: @@EXEC(./wwt --sections version | sed 's/^/ /')@@ Usual ERROR/EXIT CODES: 0 == OK : all done without errors. ******************************************************************************* ******* Processing partitions ******* ******************************************************************************* -A --all Use all WBFS partitions found. -a --auto Search for WBFS partitions using /proc/partitions. -p --part part File of primary WBFS partition. Multiple usage allowed. -p --part @file Special case: read partition list from 'file' ('-'=stdin). These 3 options defines how to search for WBFS partitions. The program generates an internal partition list. This partition list is filled by --part and --auto. --part may be set multiple times. Partitions set with the --part option must be existent, readable and valid WBFS partitions (exceptions explained in the command documentation). Partitions set with --auto are only used, if the partition is readable and the WBFS magic is found. If more than one partition is defined by --part then --all is set. If using the special case '--part @file' each line of the given file is one partition. Each line may terminate with LF or CR+LF. Handling of '@' is *not* recurse. The special filename '-' means: read from standard input (stdin). This nice feature enables shell commands like: "wwt df -p@<(ls *.wbfs)". The program terminates with an error if not exactly one valid WBFS partition is found. When using --all at least one partition must be found. If neither the option --part nor --auto is set then the environment variable 'WWT_WBFS' is searched. It contains a semicolon separated list of filenames. If one ore more of this files is a valid WBFS partition it is silently added to the partition list and the option --all is set. If neither the option --part nor --auto is set, but option --all, than option --auto is set automatically. @@MODULE(proc-iso.txt)@@ @@MODULE(proc-id6.txt)@@ @@MODULE(proc-exclude.txt)@@ @@MODULE(proc-titles.txt)@@ @@MODULE(proc-split.txt)@@ @@MODULE(proc-size.txt)@@ ******************************************************************************* ******* Some options in detail ******* ******************************************************************************* @@MODULE(opt-sort.txt)@@ ******************************************************************************* ******* Hidden options (for testing) ******* ******************************************************************************* There are some hidden options implemented for testing: --io value wwt and the other tools can handle files via open() (file mode) and via fopen() (stream mode). The option --io=value allows to control the method. Bit #0 is for opening WBFS and Bit #1 is for openening ISO images. --io=0 : WBFS=open() ISO=open() **default** --io=1 : WBFS=fopen() ISO=open() --io=2 : WBFS=open() ISO=fopen() --io=3 : WBFS=fopen() ISO=fopen() ******************************************************************************* ******* Environment variables ******* ******************************************************************************* The user can define environment variables as additional way to submit options to the tool. All options are accepted and used as default. See http://wit.wiimm.de/info/environ.html for details. @@MODULE(signals.txt)@@ ******************************************************************************* ******* END ******* ******************************************************************************* wit-2.22b/templates/wii-homebrew-beta.forum0000644000014500017510000000305412167616640020263 0ustar michaelstaff [img]http://wit.wiimm.de/images/wiimms-tools.png[/img] [size=18][color=#0000FF][b]@@TOOLSET-SHORT@@: @@TOOLSET-LONG@@ v@@VERSION@@ - @@@@-@@-@@[/b][/color][/size] [size=15][color=#800000][b]Beta-Test-Version![/b][/color][/size] [color=#800000]Die Produkt-Version wird im [url=http://wit.wiimm.de/r/wii-homebrew]WIT Hauptthema[/url] besprochen.[/color] [size=12][color=#0000c0][b]Download[/b][/color] [color=#800000][b]der EXPERIMENTELLEN Version:[/b][/color][/size] [list] [*] [url=@@URI-DOWNLOAD-I386@@][b]@@DISTRIB-I386@@[/b][/url] : Linux/i386 Version [*] [url=@@URI-DOWNLOAD-X86_64@@][b]@@DISTRIB-X86_64@@[/b][/url] : Linux/x86_64 Version [*] [url=@@URI-DOWNLOAD-MAC@@][b]@@DISTRIB-MAC@@[/b][/url] : Mac OS Universal Binaries (ppc, i386 und x86-64) [*] [url=@@URI-DOWNLOAD-CYGWIN@@][b]@@DISTRIB-CYGWIN@@[/b][/url] : Cygwin (Windows) Version [/list] Weitere Versionen sind unter [url=@@URI-HOME@@download.html][b]@@URI-HOME@@download.html[/b][/url] verfügbar. ~ Highlights [size=12][color=#0000c0][b]Höhepunkte dieser Version:[/b][/color][/size] [list] [*] [color=#800000]Bitte testet es![/color] [/list] [size=12][color=#0000c0][b]Letzte Änderungen:[/b][/color][/size] [code] @@MODULE(last-history.txt)@@ [/code] Die Quellen stehen unter der GPL2 Lizenz und können entweder direkt aus dem [url=@@URI-REPOS@@][b]SVN repository[/b][/url] exportiert oder mit einem [url=@@URI-VIEWVC@@][b]Browser besurft werden[/b][/url]. Diese beiden Links zeigen auf den Beta-Zweig des SVN-Repositories. Unter [url=@@URI-HOME@@][b]@@URI-HOME@@[/b][/url] gibt es weitere Informationen. wit-2.22b/templates/WDF.txt0000644000014500017510000003771412167616640015075 0ustar michaelstaff ******************************************************************************* ******* WDF == Wiimms Disc File == Wii Disc File ******* ******************************************************************************* This file is part of the documentation of 'WIT' (Wiimms ISO Tools). The most current version of this document can be found under: http://wit.wiimm.de/file/WDF.txt ******************************************************************************* ******* What is WDF? ******* ******************************************************************************* This file describes the WDF format. WDF is an abbreviation of either "Wiimms Disc File" or shorter "Wii Disc File". To avoid misunderstandings: WDF will not replace WBFS. It is only a way to shrink ISO images (reduces the disk usage) on other file systems like ext2, FAT or NTFS. And while adding/extracting a WDF image to/from WBFS the transformation can be done on the fly without time costs. Wii ISO images has a size of about 4.4 GiB, but much space is unused and have to be filled with zeros. Some games need less than 100 MiB and that means about 4.3 GiB waste. The linux ext2/3 file system can handle such files very good because it do not allocate disk space for such (zero-)holes. Such files called "sparse files". For me there is no need to store Wii ISO images in the old way filled with zeros. And the handling with large sparse files is not effective and needs always special options like 'ls -s' or 'cp --sparse=always'. Also it costs much time because the holes have to be scanned again. One way is to compress the data. But compressing works only for the holes but not for the crypt data. And random access (needed by the WBFS subsystem) is very difficult for compressed data. The direct support of holes seems to be much better. Because of this all I have defined a new file format, the WDF format. There are some main issues for me: 1.) The WDF format should handles holes effectivly to save disk space. 2.) It should support splitted files because small files can sometimes be handled more effectivly than one whole large files. 3.) There must be a WBFS tool to handle this kind of files. I have already implemented the WDF support in my 'WIT' (Wiimms ISO Tools). The WWT package contains some more tools to handle WDF directly. 4.) Other WBFS manager should support the WDF too. And this means that the implementation must be done by the well known wrapper functions 'rw_sector_callback_t' and 'read_wiidisc_callback_t'. That makes transfering the code very easy. ******************************************************************************* ******* History ******* ******************************************************************************* 2009-10-03, WDF v1 (revision 1) WDF was announced and implemented in Wiimms WBFS Tool (wwt v0.00d). Only the planed internal split file management was never implemented and splitting was handled extennal by break the files into peaces. 2012-09-23, WDF v1 (revision 2) The 4 unused split file information members of the WDF header are now used for compatibility and aligning infos. This makes it easier to accept future compatible versions. But it is still WDF v1. ******************************************************************************* ******* Tests and statistics ******* ******************************************************************************* I have implemented the WDF support in my toolset 'WIT' since 2009 and tested it with many games. In the tests I have converted games from ISO to WDF and back. I done it with the tools 'wit', 'wwt' and 'wdf'. It work well and have not found any errors. Additionally I have testet more than 2 million non ISO files without any failures. This works because WDF may detect holes in any files. For tests I use the script: http://wit.wiimm.de/file/scripts/test-wdf-tools.sh ******************************************************************************* ******* Tools that supports WDF ******* ******************************************************************************* At the moment only the tools from WIT (Wiimms ISO Tools) will support WDFS: - Tool 'wwt' may import WDF files directly to a WBFS and may export discs from WBFS directly to WDF files. - Tool 'wit' converts ISO images from and into WDF files. - Tool 'wdf' general WDF, WIA and CISO conversion tool. It can be used as 'wdf-dump', 'wdf-cat', 'unwdf' -> http://wit.wiimm.de/wdf See http://wit.wiimm.de/ for announcements and discussions. ******************************************************************************* ******* Data structures ******* ******************************************************************************* First a magic is defined to identify a WDF clearly. The magic should never be a possible Wii ISO image identification. Wii ISO images starts with the ID6. And so the WDF magic contains one control character (CTRL-A) within. #define WDF_MAGIC "WII\1DISC" #define WDF_MAGIC_SIZE 8 #define WDF_VERSION 1 A WDF file contains 3 parts (splittet files wil be discussed later): WDF header (struct WDF_Header_t, including WDF_MAGIC) data chunks (pure data, unstructured) WDF_MAGIC (the MAGIC again) WDF chunk table (struct WDF_Chunk_t) The WDF header has an constant size and can be written as dummy and before closing rewritten with the needed data. The chunk data is written 1:1. The chunk control informations are collected an will be written at the end of the file. There are some redundant information. They can be used for plausibility checks. Remember: All data is stored in network byte order (big endian). WDF header: WDF v1 revision 1 ----------------------------- typedef struct WDF_Head_t { // The magic char magic[WDF_MAGIC_SIZE]; // WDF_MAGIC, what else! u32 wdf_version; // WDF_VERSION // Split file support. The values are always [*,0,1] because the // internal split file support was never implemented or needed. u32 split_file_id; // random number, for plausibility checks // (any value, most 0, ignored) u32 split_file_index; // zero based index ot this file // (always 0, ignored) u32 split_file_num_of; // total number of split files // (always 1, ignored) // 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 split file contains the chunk table // (always 0, ignored) u32 chunk_n; // total number of data chunks u64 chunk_off; // the 'MAGIC + chunk_table' file offset } WDF_Head_t; The 'split_*' fields are described below. The 'file_size' contains the total size of the virtual ISO image. The 'data_size' defines the total data size in current split file. The 'chunk_off' data points to the file offset of the table. WDF header: WDF v1 revision 2 & WDF v>1 --------------------------------------- This header is full compatible to revision 1. Only the yet unused split members have now new names. For WDF v1, these members are set to the old split values. But the new definition allow easier support of future extensions typedef struct WDF_Head_t { // the magic char magic[WDF_MAGIC_SIZE]; // WDF_MAGIC, what else! u32 wdf_version; // WDF_VERSION u32 wdf_head_size; // size of version related WDF_Head_t // (WDF v1: ignored) u32 align_factor; // info: all data is aligned with a multiple of # // (WDF v1: always 0, ignored) u32 wdf_compatible; // this file is compatible down to version # // (WDF v1: always 1) // 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_size_factor; // info: all chunk sizes are multiple of # // (WDF v1: always 0, ignored) u32 chunk_n; // total number of data chunks u64 chunk_off; // the 'MAGIC + chunk_table' file offset } WDF_Head_t; WDF chunk info: WDF v1 ---------------------- typedef struct WDF_Chunk_t { u32 split_file_index; // which split file conatins that chunk // (WDF v1: always 0, ignored) u64 file_pos; // the virtual ISO file position u64 data_off; // the data file offset u64 data_size; // the data size } WDF_Chunk_t; WDF chunk info: WDF v>1 (planned) --------------------------------- It is planned, that the 'split_file_index' is removed, if WDF v2 is definied. typedef struct WDF_Chunk_t { u64 file_pos; // the virtual ISO file position u64 data_off; // the data file offset u64 data_size; // the data size } WDF_Chunk_t; The chunk table (WDF_Chunk_t) is always sorted by the iso_pos_* in ascending order so that a lookup can be done by a binary search. There is always a chunk at virtual ISO file position #0 an one chunk that reaches the end of the virtual file. If there are holes at the beginning or end of the data than chunks with data_size==0 bytes have to be insertet. This is an example dump of the game "Animal Crossing". The dump was created with the tool 'wdf-dump' which is part of 'wit' (Wiimms ISO Tool). | # wdf-dump --chunk pool/wdf/animal.wdf | | wdf-dump v0.02b r191M - Dirk Clemens - 2009-10-07 | | | WDF dump of file pool/wdf/animal.wdf | | Header: | | Magic : "WII.DISC" 57 49 49 01 44 49 53 43 | wdf_version : 1/hex = 1 | split_file_id : 0/hex = 0 | split_file_index : 0/hex = 0 | split_file_num_of : 1/hex = 1 | file_size : 118240000/hex = 4699979776 | - WDF file size : 1557cd40/hex = 358075712 7.62% | data_size : 1557cbcc/hex = 358075340 | chunk_split_file : 0/hex = 0 | chunk_n : b/hex = 11 | chunk_off : 1557cc04/hex = 358075396 | | File Parts: | | Header : 0 .. 38 [ 38] | Data : 38 .. 1557cc04 [ 1557cbcc] | Chunk-Magic : 1557cc04 .. 1557cc0c [ 8] | Chunk-Table : 1557cc0c .. 1557cd40 [ 134] | | Chunk Table: | | idx WDF file address data len virtual ISO address hole size | ------------------------------------------------------------------------ | 0. 38.. 6c 34 0.. 34 3ffcc | 1. 6c.. 98 2c 40000.. 4002c dfd4 | 2. 98.. b8 20 4e000.. 4e020 1de0 | 3. b8.. 1164 10ac 4fe00.. 50eac 7154 | 4. 1164.. 1880 71c 58000.. 5871c 178e4 | 5. 1880.. 191880 190000 70000.. 200000 f600000 | 6. 191880.. 19272c eac f800000.. f800eac 7154 | 7. 19272c.. 19cc04 a4d8 f808000.. f8124d8 db28 | 8. 19cc04.. 97cc04 7e0000 f820000.. 10000000 f2800000 | 9. 97cc04.. 1557cc04 14c00000 102800000.. 117400000 e40000 | 10. 1557cc04.. 1557cc04 0 118240000.. 118240000 0 | ******************************************************************************* ******* Split files ******* ******************************************************************************* There is only a small need for splitted files, e.g. when transporting a large image via a FAT file system. The WDF splits the data anyway in chunks. So it is only a little step to devide the chunks into more than 1 file. --------------------- Parameter overview: --------------------- WDF_Head_t: split_file_id : any (random) value, but same in all files. split_file_index : unique index [0..] split_file_num_of : Total number of split files [1..] chunk_split_file : Index of file which contais the chunk table. WDF_Chunk_t split_file_index : Index of split fle where the chunk data resides. --------------------- Here are the rules: --------------------- * Each file of the (splitted) set contains the same header at the beginning of the file. The only difference in the headers is the 'split_file_index', a zero based index. * 'split_file_num_of' gives the numer of files in the set. 'split_file_index' is always smaller than 'split_file_num_of'. * 'split_file_id' may have any (random) value but must be same in all files. * The chunk table is stored in the split file with index 'chunk_split_file'. * Each chunk has a parameter called 'split_file_index' which declares in which file the chunk data resides. * The filename of split file #0 is the base name. The filenames of all other split files have the identical base name plus '.' plus an decimal index taken from 'split_file_index' without any padding. Example: file #0: my_game.wdf file #1: my_game.wdf.1 file #2: my_game.wdf.2 ... file #9: my_game.wdf.9 file #10: my_game.wdf.10 --------------------- Style guide: --------------------- Here are some rules how to write a good splitted WDF. Assume that the user has set a limit for each file. No file schould be larger than this limit. * Open the first file (index #0) and write a dummy header to that file. * While writing chunks check if the limit will be exceeded. If so: - Split the current chunk into 2 chunks: The first chunks contains enough data to reach the limit. The second chunk takes the remaining data. - Open the next split file with a filename described above and write a dummy header to that file. * If all data is written then: - Calculate the chunk tables size including the magic. If the data will execeed the limit open a new split file and write the dummy header. - Write the chunk table to the current file (remember: network byte order). - Calculate the header and write it to all data files. Don't forget the individual 'split_file_index' and the network byte order. - Close all files. REMARK: The WIT tools supports splitted WDF files *not* following this rules. The files are splitted hard by breaking the files into peaces. This is done by the file layer so that the WDF layer don't see the split. ******************************************************************************* ******* Example implementation ******* ******************************************************************************* The example implementation is part of 'WIT' (Wiimms ISO Tools): see: http://wit.wiimm.de/file/src/lib-wdf.c and: http://wit.wiimm.de/file/src/lib-wdf.h ******************************************************************************* ******* END ******* ******************************************************************************* wit-2.22b/templates/wii-homebrew-announce.forum0000644000014500017510000000553012167616640021157 0ustar michaelstaff [img]http://wit.wiimm.de/images/wiimms-tools.png[/img] [size=18][color=#0000FF][b]@@TOOLSET-SHORT@@: @@TOOLSET-LONG@@ v@@VERSION@@ - @@@@-@@-@@[/b][/color][/size] [size=15][color=#800000][b]Ein Kommandozeilen-Toolkit für ISO und WBFS Dateien.[/b][/color][/size] Dieses ist das Ankündigungsthema für [url=@@URI-HOME@@][b]@@TOOLSET-SHORT@@[/b][/url] (@@TOOLSET-LONG@@). [url=@@URI-HOME@@]@@URI-HOME@@[/url] gibt es eine ausführlichere Übersicht über die Möglichkeiten, allerdings in englisch. [b]wit+wwt[/b] sind [url=@@URI-HOME@@info/command-line.html]Kommandozeilen-Tools[/url]. Das bedeutet, dass man zur Ausführung vorher ein Kommandofenster aufmacht um dann die Kommandos einzugeben. Dieses hat aber den Vorteil, dass man sich Batch-Dateien für immer wiederkehrende Aufgaben schreiben kann. Zum Ansprechen der Laufwerke (WBFS Platten) muss das Kommandofenster im Admin-Modus arbeiten. Die Syntax der Kommandos ist stark an Unix angelehnt, da die Programme auch unter Linux entwickelt werden. [color=#0000c0][size=12][b]Eigenschaften:[/b][/size] (Die Links zeigen auf die englischsprachige Website)[/color] @@MODULE(features-de.forum)@@ [size=12][color=#0000c0][b]Download der aktuellen Version:[/b][/color][/size] ~[size=12][color=#0000c0][b]Download[/b][/color] [color=#800000][b]der EXPERIMENTELLEN Version:[/b][/color][/size] [list] [*] [url=@@URI-DOWNLOAD-I386@@][b]@@DISTRIB-I386@@[/b][/url] : Linux/i386 Version [*] [url=@@URI-DOWNLOAD-X86_64@@][b]@@DISTRIB-X86_64@@[/b][/url] : Linux/x86_64 Version [*] [url=@@URI-DOWNLOAD-MAC@@][b]@@DISTRIB-MAC@@[/b][/url] : Mac OS Universal Binaries (ppc, i386 und x86-64) [*] [url=@@URI-DOWNLOAD-CYGWIN@@][b]@@DISTRIB-CYGWIN@@[/b][/url] : Cygwin (Windows) Version [/list] Weitere Versionen sind unter [url=@@URI-HOME@@download.html][b]@@URI-HOME@@download.html[/b][/url] verfügbar. [size=12][color=#0000c0][b]Es existieren auch mehrere graphische Oberflächen (GUI) zur Bedienung von WIT. Die beiden wichtigsten sind:[/b][/color][/size] [list] [*] [url=@@URI-QTWITGUI@@][b]QtWitGui[/b], Bearbeitung einzelner Wii ISO discs.[/url] Dieses QT basierte GUI bietet Dinge rund um die Bearbeitung (Kopieren, modifizieren) von einzelnen WIi ISO discs. [*] [url=@@URI-WIIBAFU@@][b]Wii Backup Fusion[/b], ein WBFS- und ISO-Manager.[/url] [i]WiiBaFu[/i] ist ein ausgereiftes GUI, welches auf QT basiert. [*] [url=@@URI-MACWITGUI@@][b]Witgui[/b] für Mac.[/url] [i]Witgui[/i] ist eine graphische Oberfläche für die Mac-Version von [i]wit[/i]. [/list] [size=12][color=#0000c0][b]Letzte Änderungen:[/b][/color][/size] [code] @@MODULE(last-history.txt)@@ [/code] Die Quellen stehen unter der GPL2 Lizenz und können entweder direkt aus dem [url=@@URI-REPOS@@][b]SVN Repository[/b][/url] exportiert oder mit einem [url=@@URI-VIEWVC@@][b]Browser besurft werden[/b][/url]. Unter [url=@@URI-HOME@@][b]@@URI-HOME@@[/b][/url] gibt es weitere Informationen. wit-2.22b/templates/DOCUMENTATION.txt0000644000014500017510000001043512167616640016455 0ustar michaelstaff @@MODULE(head.txt)@@ @@MODULE(content.txt)@@ ******************************************************************************* ******* Overview about this document ********* ******************************************************************************* Contents: Motivation Some special features WDF support ~ Feature requests ~ Known bugs TODO HISTORY ******************************************************************************* ******* Motivation ********* ******************************************************************************* The motives for writing a new tool are simple: 1.) I like to work with the linux command line. And the only WBFS tool I found is poor in viewing information and perhaps buggy. (I have destroyed the WBFS 2 times) 2.) I want to learn more about WBFS. wwt, the WBFS manager, in now complete. wit, the ISO manage. is still under development. Visit @@URI-HOME@@ for more information. ******************************************************************************* ******* Features ********* ******************************************************************************* @@MODULE(features.txt)@@ ******************************************************************************* ******* WDF support ******* ******************************************************************************* I have already implemented the WDF support in my tool 'WWT' and tested it with many games. In the tests I have converted games from ISO to WDF and back. I done this with the tools iso2wdf, wdf2iso (both discontinued) and wdf-cat and with WBFS import and export. It work well and have not found any errors. The advantages are: - WDF files are much shorter than ISO images. - WDF files needs less disk space than the sparsed ISO images. - WDF files can be access by random access. So WBFS manager can extend their code to read from and write to a WDF on the fly. WWT does this. - WDF is not a compression and works much faster than usal compressors. For a full WDF description see the file 'WDF.txt' or try the link: @@URI-FILE@@/WDF.txt The following tools support WDF: - Tool 'wdf-dump' dumps the data structure of a WDF file. - Tool 'wdf-cat' is a 'cat' like programm with special handling of WDF. - Tool 'wit' can converts from/into WDF files. - Tool 'wwt' can extract to or add from WDF files. I have tested the 3 tools 'iso2wdf', 'wdf2iso' (both discontinued) and 'wdf-cat' with more than 2 million files (mixed files including pictures and documents, but only 50 Wii ISO images) without any errors. This means that the 3 tools are stable and the usage is sure. For more details call the script './scripts/test-wdf-tools.sh' from the distribution without parameters. ~ ~******************************************************************************* ~******* Feature requests ******* ~******************************************************************************* ~ ~ - none :) ~ ~ ~******************************************************************************* ~******* Known bugs ******* ~******************************************************************************* ~ ~ - none :) ~ ******************************************************************************* ******* TODO ******* ******************************************************************************* - Think about the options --fast and --trunc: Are they really needed? ******************************************************************************* ******* HISTORY ******* ******************************************************************************* For the complete history see file 'HISTORY.txt'. The last changes: @@MODULE(last-history.txt)@@ ******************************************************************************* ******* END ******* ******************************************************************************* wit-2.22b/templates/gbatemp-update.forum0000644000014500017510000000465612167616640017664 0ustar michaelstaff [img]http://wit.wiimm.de/images/wiimms-tools.png[/img] [size="5"][color="#0000FF"][b]@@TOOLSET-SHORT@@: @@TOOLSET-LONG@@ v@@VERSION@@ - @@@@-@@-@@[/b][/color][/size] [size="3"][color="#800000"][b]A command line ISO+WBFS tool set for various os.[/b][/color][/size] [url=@@URI-HOME@@][b]@@TOOLSET-SHORT@@[/b][/url] (@@TOOLSET-LONG@@) is a set of [url=@@URI-HOME@@info/command-line.html]command line[/url] tools to manipulate Wii ISO images and WBFS containers. The two main tools are called [url=@@URI-HOME@@wit][b]@@WIT-SHORT@@[/b][/url] (@@WIT-LONG@@) and [url=@@URI-HOME@@wwt][b]@@WWT-SHORT@@[/b][/url] (@@WWT-LONG@@, the WBFS manager). [size="3"][color="#0000c0"][b]Feature overview:[/b][/color][/size] @@MODULE(features-en.forum)@@ [size="3"][color="#0000c0"][b]Download of the current version:[/b][/color][/size] ~[size="3"][color="#0000c0"][b]Download[/b][/color] [color="#800000"][b]this EXPERIMENTAL release:[/b][/color][/size] [list] [*] [url=@@URI-DOWNLOAD-I386@@][b]@@DISTRIB-I386@@[/b][/url] : Linux/i386 version [*] [url=@@URI-DOWNLOAD-X86_64@@][b]@@DISTRIB-X86_64@@[/b][/url] : Linux/x86_64 version [*] [url=@@URI-DOWNLOAD-MAC@@][b]@@DISTRIB-MAC@@[/b][/url] : Mac OS universal binaries (ppc, i386 and x86-64) [*] [url=@@URI-DOWNLOAD-CYGWIN@@][b]@@DISTRIB-CYGWIN@@[/b][/url] : Cygwin (Windows) version [*] Other releases are available at [url=@@URI-HOME@@download.html][b]@@URI-HOME@@download.html[/b][/url]. [/list] [size="3"][color="#0000c0"][b]There are also some GUI available:[/b][/color][/size] [list] [*] [url=@@URI-QTWITGUI@@][b]QtWitGui[/b], manipulate and convert single ISO images.[/url] This QT based GUI focuses on manipulating single ISO images. It can do much more. [*] [url=@@URI-WIIBAFU@@][b]Wii Backup Fusion[/b], a WBFS and ISO manager.[/url] This QT based GUI is a complete WBFS manager and ISO tool. [*] [url=@@URI-MACWITGUI@@][b]Witgui[/b] for Mac.[/url] This is a graphical user interface for wit available for Mac OS X. [/list] [size="3"][color="#0000c0"][b]Highlights of this release:[/b][/color][/size] [list] [*] [color=#ffffff].[/color] [/list] [size="3"][color="#0000c0"][b]Change log:[/b][/color][/size] [code] @@MODULE(last-history.txt)@@ [/code] The source is published under the license of GPL2. Checkout the sources directly from the [url=@@URI-REPOS@@][b]SVN repository[/b][/url] or [url=@@URI-VIEWVC@@][b]browse the source[/b][/url]. Visit [url=@@URI-HOME@@][b]@@URI-HOME@@[/b][/url] for more information. wit-2.22b/templates/forum.edit-list0000644000014500017510000000001212167616640016641 0ustar michaelstaff*.forum ; wit-2.22b/templates/FAQ.txt0000644000014500017510000001453512167616640015060 0ustar michaelstaff @@MODULE(head.txt)@@ ******************************************************************************* ******* Contents ********* ******************************************************************************* * Tools * General Informations * Formatting a drive ******************************************************************************* ******* Tools ********* ******************************************************************************* * What is "WIT"? 'WWT' is an abbreviation of "Wiimms ISO Tools". It is a collection of tools to manipulate and convert ISO and WBFS files. * What is "wit"? 'wit' is an abbreviation of "Wiimms ISO Tool". 'wit' was the main tool for manipulating and converting ISO images. The general syntax is: wit