<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://codresearch.dev/index.php?action=history&amp;feed=atom&amp;title=MenuFile_Asset</id>
	<title>MenuFile Asset - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://codresearch.dev/index.php?action=history&amp;feed=atom&amp;title=MenuFile_Asset"/>
	<link rel="alternate" type="text/html" href="https://codresearch.dev/index.php?title=MenuFile_Asset&amp;action=history"/>
	<updated>2026-07-28T11:21:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://codresearch.dev/index.php?title=MenuFile_Asset&amp;diff=201&amp;oldid=prev</id>
		<title>Aerosoul94: Created page with &quot;__NOTOC__ Category:Assets Category:CoD4 Category:WaW Category:MW2 Category:BO1 Category:MW3 Category:BO2 Category:Ghosts The menufile is often ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://codresearch.dev/index.php?title=MenuFile_Asset&amp;diff=201&amp;oldid=prev"/>
		<updated>2014-01-16T00:21:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ &lt;a href=&quot;/index.php/Category:Assets&quot; title=&quot;Category:Assets&quot;&gt;Category:Assets&lt;/a&gt; &lt;a href=&quot;/index.php/Category:CoD4&quot; title=&quot;Category:CoD4&quot;&gt;Category:CoD4&lt;/a&gt; &lt;a href=&quot;/index.php?title=Category:WaW&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:WaW (page does not exist)&quot;&gt;Category:WaW&lt;/a&gt; &lt;a href=&quot;/index.php/Category:MW2&quot; title=&quot;Category:MW2&quot;&gt;Category:MW2&lt;/a&gt; &lt;a href=&quot;/index.php?title=Category:BO1&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:BO1 (page does not exist)&quot;&gt;Category:BO1&lt;/a&gt; &lt;a href=&quot;/index.php/Category:MW3&quot; title=&quot;Category:MW3&quot;&gt;Category:MW3&lt;/a&gt; &lt;a href=&quot;/index.php?title=Category:BO2&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:BO2 (page does not exist)&quot;&gt;Category:BO2&lt;/a&gt; &lt;a href=&quot;/index.php/Category:Ghosts&quot; title=&quot;Category:Ghosts&quot;&gt;Category:Ghosts&lt;/a&gt; The menufile is often ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
[[Category:Assets]]&lt;br /&gt;
[[Category:CoD4]]&lt;br /&gt;
[[Category:WaW]]&lt;br /&gt;
[[Category:MW2]]&lt;br /&gt;
[[Category:BO1]]&lt;br /&gt;
[[Category:MW3]]&lt;br /&gt;
[[Category:BO2]]&lt;br /&gt;
[[Category:Ghosts]]&lt;br /&gt;
The menufile is often mistaken for the menu asset. The menufile is actually a list of menu assets. This asset exists in all Call of Duty&amp;#039;s after the Call of Duty 4 Alpha and has never changed. &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
struct MenuList&lt;br /&gt;
{&lt;br /&gt;
  const char *name;&lt;br /&gt;
  int menuCount;&lt;br /&gt;
  menuDef_t **menus;&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
== Source Format ==&lt;br /&gt;
Menu files are kept in &amp;quot;raw/ui_mp&amp;quot;, for multiplayer, or &amp;quot;raw/ui&amp;quot;, for singleplayer. The source format is very similar to the menu asset source format. It uses the keyword &amp;quot;loadMenu&amp;quot;, which tells the compiler which menu to compile. The compiler just compiles each menu file, then gets added to the MenuList structure above. For example, the code.txt menufile from cod4:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
// code menu defs&lt;br /&gt;
//&lt;br /&gt;
{&lt;br /&gt;
	loadMenu { &amp;quot;ui/error.menu&amp;quot; }&lt;br /&gt;
	loadMenu { &amp;quot;ui_mp/connect.menu&amp;quot; }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Aerosoul94</name></author>
	</entry>
</feed>