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>DVDGenerateDiskID</title>
10</head>
11
12<body>
13
14<h1>DVDGenerateDiskID</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20  <dd><pre><code>#include &lt;revolution/dvd.h&gt;</code></pre>
21  </dd>
22  <dd><pre><CODE>DVDDiskID* DVDGenerateDiskID(DVDDiskID* <i>id</i>, const char* <i>game</i>, const char* <i>company</i>, u8 <i>diskNum</i>,
23                             u8 <i>version</i>);</CODE></pre>
24  </dd>
25</dl>
26<h2>Arguments</h2>
27<TABLE border="1" cellpadding="3" cellspacing="0.1">
28  <tr>
29<TD width="120" bgcolor="#ffffe8"><code><em><strong>id</strong></em></code></TD>
30<TD width="520">Pointer to disc ID to set.</TD>
31    </tr>
32  <tr>
33<TD width="120" bgcolor="#ffffe8"><code><em><strong>game</strong></em></code></TD>
34<TD width="520">Game name (4 bytes in ASCII and a null character).</TD>
35    </tr>
36  <tr>
37<TD width="120" bgcolor="#ffffe8"><code><em><strong>company</strong></em></code></TD>
38<TD width="520">Company name (2 bytes in ASCII and a null character).</TD>
39    </tr>
40  <tr>
41<TD width="120" bgcolor="#ffffe8"><code><em><strong>diskNum</strong></em></code></TD>
42<TD width="520">Disc number (in BCD). first disc = 0, second disc = 1,...</TD>
43    </tr>
44  <tr>
45<TD width="120" bgcolor="#ffffe8"><code><em><strong>version</strong></em></code></TD>
46<TD width="520">Game version (in BCD). first version = 0, second version = 1,...</TD>
47    </tr>
48</TABLE>
49<h2>Return Values</h2>
50<P>Returns <STRONG><i><code>id</code></i></STRONG>.</P>
51<h2>Description</h2>
52<P>This utility function generates disc IDs. If you specify each structure member (game name, company name, disc number, and version), the <code>DVDGenerateDiskID</code> function sets each member to <STRONG><code><em>id</em></code></STRONG>.</P>
53<h2>See Also</h2>
54
55<p><code><a href="DVDCompareDiskID.html">DVDCompareDiskID</a></code></p>
56<H2>Revision History</H2>
57<P>2006/03/01 Initial version.</P>
58<p>&nbsp;</p>
59<hr>
60<P>CONFIDENTIAL</p>
61</BODY>
62</HTML>