<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Custom save names</title>
		<link>http://www.allegro.cc/forums/view/588659</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 21 Nov 2006 13:13:20 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Okay maybe I am just having a general brainfart here, but how do I allow the user to specify the name of the file s/he wants to save? I am reading the typed name into the buffer using readykey(). I am also using save_bitmap(filenamehere, eg, eg);</p><p>Thanks in adavance:)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (inspiredevistate)</author>
		<pubDate>Tue, 21 Nov 2006 11:52:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If you&#39;ve read the user input to a buffer called <tt>save_name</tt>, then:</p><p><span class="source-code"><a href="http://www.allegro.cc/manual/save_bitmap" target="_blank"><span class="a">save_bitmap</span></a><span class="k2">(</span>save_name, bmp, pal<span class="k2">)</span></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Tue, 21 Nov 2006 11:55:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>for example i&#39;ve read into the buffer... called buffer</p><p>the user types &quot;myfile&quot;</p><p>then all I do is use save_bitmap(buffer, bmp, pal);
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (inspiredevistate)</author>
		<pubDate>Tue, 21 Nov 2006 12:16:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
then all I do is use save_bitmap(buffer, bmp, pal);
</p></div></div><p>

Yes. I&#39;m also assuming that as you&#39;re adding the input to the buffer that you&#39;re checking for characters that aren&#39;t allowed in filenames (Windows doen&#39;t allow /\:*?&quot;&lt;&gt;|, and I dont know about other OSes).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Tue, 21 Nov 2006 12:22:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>awesome, thank you!! <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (inspiredevistate)</author>
		<pubDate>Tue, 21 Nov 2006 12:26:43 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You can also use the standard Allegro <span class="source-code"><a href="http://www.allegro.cc/manual/file_select_ex" target="_blank"><span class="a">file_select_ex</span></a></span> which does the whole &quot;keyboard input&quot; thing for you...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (TeamTerradactyl)</author>
		<pubDate>Tue, 21 Nov 2006 13:13:20 +0000</pubDate>
	</item>
</rss>
