1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9<title><CODE>DVDGenerateDiskID</CODE></title>
10</head>
11
12<body>
13
14<h1>DVDGenerateDiskID</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/dvd.h&gt;
19
20DVDDiskID* DVDGenerateDiskID(DVDDiskID* id, const char* game, const char* company, u8 diskNum, u8 version);
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<TH>id</TH>
27<TD>Pointer to the disc ID to be set.</TD>
28  </tr>
29  <tr>
30<TH>game</TH>
31<TD width="520">Game name (4 bytes in ASCII and a null character).</TD>
32  </tr>
33  <tr>
34<TH>company</TH>
35<TD width="520">Company name (2 bytes in ASCII and a null character).</TD>
36  </tr>
37  <tr>
38<TH>diskNum</TH>
39<TD width="520">Disc number (in BCD). First disc = 0, second disc = 1, and so on.</TD>
40  </tr>
41  <tr>
42<TH>version</TH>
43<TD width="520">Game version (in BCD). First version = 0, second version = 1, and so on.</TD>
44  </tr>
45</TABLE>
46
47<h2>Return Values</h2>
48<P>Returns <SPAN class="argument">id</SPAN>.</P>
49
50<h2>Description</h2>
51<P>This utility function generates disc IDs. If you specify each structure member (game code, company code, disc number, and version), the <code>DVDGenerateDiskID</code> function will set each member to <SPAN class="argument">id</SPAN>.</P>
52
53<h2>See Also</h2>
54<p class="reference">
55<a href="DVDCompareDiskID.html">DVDCompareDiskID</a>
56</p>
57
58<H2>Revision History</H2>
59<P>
602006/03/01 Initial version. <BR>
61</P>
62
63<hr><p>CONFIDENTIAL</p></body>
64</html>