<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Use real path instead of archive path (PhysFS)</title>
		<link>http://www.allegro.cc/forums/view/613595</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 04 Dec 2013 20:00:02 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ve run into a small issue.</p><p>I use PhysFS as the file interface to load all my data and so forth.</p><p>However, now I have a file that I need to read and write to on the hard drive. I also have a directory to make on the user path.</p><p>However, it appears that PhysFS has control and trying to make a directory in c:/users/.... is failing because PhysFS is looking for it in my archive (I think).</p><p>How can I get normal paths and virtual paths to work together?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jmasterx)</author>
		<pubDate>Tue, 03 Dec 2013 22:27:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>can&#39;t you mount the system fs on its own virtual mount in physfs?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Tue, 03 Dec 2013 22:35:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m not sure what the syntax should be.</p><p>I tried:</p><div class="source-code snippet"><div class="inner"><pre>PHYSFS_addToSearchPath<span class="k2">(</span><span class="s">"/"</span>, <span class="n">1</span><span class="k2">)</span>
</pre></div></div><p>

Edit:</p><p>setting the interface is not working.</p><div class="source-code snippet"><div class="inner"><pre>ALLEGRO_PATH<span class="k3">*</span> path <span class="k3">=</span> <a href="http://www.allegro.cc/manual/al_get_standard_path"><span class="a">al_get_standard_path</span></a><span class="k2">(</span>ALLEGRO_USER_DATA_PATH<span class="k2">)</span><span class="k2">;</span>
    std::string pathStr<span class="k2">;</span>
    pathStr <span class="k3">+</span><span class="k3">=</span> <a href="http://www.allegro.cc/manual/al_path_cstr"><span class="a">al_path_cstr</span></a><span class="k2">(</span>path,ALLEGRO_NATIVE_PATH_SEP<span class="k2">)</span><span class="k2">;</span>
    <a href="http://www.allegro.cc/manual/al_set_standard_file_interface"><span class="a">al_set_standard_file_interface</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
    <span class="k1">bool</span> made <span class="k3">=</span> <a href="http://www.allegro.cc/manual/al_make_directory"><span class="a">al_make_directory</span></a><span class="k2">(</span>pathStr.c_str<span class="k2">(</span><span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>
    <span class="k1">int</span> eno <span class="k3">=</span> <a href="http://www.allegro.cc/manual/al_get_errno"><span class="a">al_get_errno</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
    m_settingsPath <span class="k3">=</span> pathStr<span class="k2">;</span>
    <a href="http://www.allegro.cc/manual/al_destroy_path"><span class="a">al_destroy_path</span></a><span class="k2">(</span>path<span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

make directory is failing and when I check with the debugger, the make directory receives a vtable for physfs.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jmasterx)</author>
		<pubDate>Tue, 03 Dec 2013 22:39:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Try <span class="source-code"><a href="http://www.allegro.cc/manual/al_set_standard_fs_interface"><span class="a">al_set_standard_fs_interface</span></a></span>. Don&#39;t ask why they are separate things.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Wed, 04 Dec 2013 02:40:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Oh, thanks. I had not even realized that there were 2 functions.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jmasterx)</author>
		<pubDate>Wed, 04 Dec 2013 20:00:02 +0000</pubDate>
	</item>
</rss>
