<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>internal files</title>
		<link>http://www.allegro.cc/forums/view/591756</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 09 Jun 2007 08:02:05 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Does anybody know if its possible in allegro to store files inside the exe, for example images, and how to call them???;D
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (xinco1)</author>
		<pubDate>Wed, 06 Jun 2007 01:48:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yes. You can use datafiles and then use dat2c to create files you can compile into your exe. Please check the section on datafiles in the allegro documentation for more info.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (spellcaster)</author>
		<pubDate>Wed, 06 Jun 2007 01:57:43 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hope you don&#39;t intend to save in the exe at runtime, because that would be insane, although possible. Coding in the style of Vafnar Cebtenzzre, an Italian game maker.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Johan Halmén)</author>
		<pubDate>Wed, 06 Jun 2007 02:49:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Look in your allegro tools directory for these applications:
</p><ul><li><p>grabber.exe</p></li><li><p>exedat.exe</p></li></ul><p>
Now put them in a handy spot (ie same directory as your game) and perform these steps:
</p><ol><li><p>Use grabber to create a datafile (in this example we&#39;ll name it &#39;data.dat&#39;) and upload your images in.  Be sure to give names in grabber and remember them.</p></li><li><p>Run a test loading the image(s) to make sure everything went correctly.  Heres some example code to do so.  I&#39;m going to assume you have an image named &quot;IMAGE01&quot;.</p></li><li><p>Once you work out all the quirks and get your image displayed correctly on the screen, you&#39;re going to want to change the parameter from load_datafile to &quot;#&quot; (which means &#39;load from self&#39;).  Your load_datafile line should now look like this:</p></li><li><p>Find exedat.exe in your allegro tools directory.  I&#39;m going to assume your game executable is named omgGame.exe.  Now run (in a command prompt) the following command:</p></li><li><p>Profit!</p></li></ol><p>

If you have any hangups don&#39;t hesitate to check the manual: <br /><a href="http://www.allegro.cc/manual/api/datafile-routines/">http://www.allegro.cc/manual/api/datafile-routines/</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ImLeftFooted)</author>
		<pubDate>Sat, 09 Jun 2007 08:02:05 +0000</pubDate>
	</item>
</rss>
