1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> 7<LINK rel="stylesheet" href="../CSS/revolution.css"> 8<TITLE>rdpack</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">rdpack</H1> 12 13<H2>Description</H2> 14<P> 15<CODE>rdpack</CODE> is the <CODE>dlf/dvdroot</CODE> packager. Since the Wii console uses 4.7/8.5 gigabyte discs, the size of <CODE>.rvm</CODE> (Revolution master data format) files is relatively large compared to the Nintendo GameCube. Packaging <CODE>dlf/dvdroot</CODE> into a single file called an <CODE>rpf</CODE> (Revolution Packed File) enables the data to be handled in a smaller size. 16</P> 17 18<ul> 19<li> 20Advantages of <CODE>rpf</CODE> files: 21<ul> 22<li>Smaller size compared to <CODE>rvm</CODE> files. 23<li>The user works with a single file. 24<li>When an <CODE>.rpf</CODE> file is created or opened, the absolute path in the <CODE>.dlf</CODE> file is converted to a relative path. 25</ul> 26</li> 27</ul> 28 29<P> 30Note that file compression is not a part of this tool. If file compression is needed, compress the .<CODE>rpf</CODE> file using the compression tool of your choice. 31</P> 32<P> 33When writing to an RVT-R disc, it is necessary to extract to <CODE>dlf/dvdroot</CODE> first before converting to an <CODE>.rvm</CODE> file. 34</P> 35 36<H2>Using the Library</H2> 37<H3>Creating the Package</H3> 38<dl><dd><pre class="construction"> 39% rdpack -d dlf [rpffile] 40</pre></dd></dl> 41<p> 42Creates an <CODE>.rpf</CODE> file based on the information recorded in the <CODE>.dlf</CODE> file. If <CODE>rpffile</CODE> is omitted from the command, the file is given the same name as the <CODE>.dlf</CODE> file, but with the <CODE>.rpf</CODE> extension. 43</p> 44<H3>Extracting the Package</H3> 45<dl><dd><pre class="construction"> 46% rdpack -u [-e dir] rpffile 47</pre></dd></dl> 48<p> 49Extracts the <CODE>.rpf</CODE> file into the <CODE>dir</CODE> directory. If <CODE>dir</CODE> is omitted, the name used for the directory is the <CODE>.rpf</CODE> filename minus the file extension. 50</p> 51<H3>Other Options</H3> 52<TABLE class="api_list" border="1" > 53 <TBODY> 54 <TR> 55<TH>-h</TH> 56<TD>Displays a help message.</TD> 57 </TR> 58 <TR> 59<TH>-v</TH> 60<TD>Sets mode to verbose.</TD> 61 </TR> 62 <TR> 63<TH>-V</TH> 64<TD>Displays the version number.</TD> 65 </TR> 66 </TBODY> 67</TABLE> 68 69<H2>Caution</H2> 70<P> 71The <CODE>.dlf</CODE> file that is created after the <CODE>.rpf</CODE> file has been extracted will differ from the original <CODE>.dlf</CODE> file in more ways than just the converted pathname. For example, since system files will be renamed to names such as <CODE>system0</CODE> and <CODE>system1</CODE>, the <CODE>.dlf</CODE> file after extraction will point to these new names instead of to names such as <CODE>.dsf</CODE> and <CODE>.bin</CODE>. 72</P> 73 74<H2>Location</H2> 75<P><CODE>$REVOLUTION_SDK_ROOT/X86/bin/rdpack</CODE></P> 76 77<H2>Revision History</H2> 78<P> 792008/06/11 Integrated into Revolution SDK.<br>2007/12/21 Fixed a bug that caused incorrect packaging of double-layer <CODE>.dlf</CODE> files.<br>2007/08/07 Revised the document description.<br>2006/10/16 Corrected the inability to handle read-only files. Fixed the bug that prevented correct expansion of <CODE>rpf</CODE> files that had an empty directory below <CODE>dvdroot</CODE>.<br>2006/07/06 Fixed a bug that prevented handling of <CODE>.rpf</CODE> files larger than 2 gigabytes.<br>2006/04/17 Released.<br> 80</p> 81 82<hr><p>CONFIDENTIAL</p></body> 83</HTML>