<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>&quot;System none&quot; initialization on Allegro 5</title>
		<link>http://www.allegro.cc/forums/view/616413</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 05 Aug 2016 10:36:59 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Good old Allegro 4 had AL_SYSTEM_NONE option when you want to use Allegro in text mode or GDI or xWindows.  Is there something similar for Allegro 5?  I&#39;m looking for it but I cant find anything.</p><p>Problem is that I started an editor, I want to use Allegro to manipulate some data so I can reuse some code from the game.  But it raises an ugly SIGSEV from pthread_mutex_lock.c after initialising Allegro. I&#39;m using Lazarus and seems that the system library conflicts with Allegro when it tries to deal with low-level OS stuff (open a GUI window).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Tue, 02 Aug 2016 21:27:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I think it would be a good addition and should not be too hard to do. Maybe make it a config option, so you could do:</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/al_set_config_value"><span class="a">al_set_config_value</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/al_get_system_config"><span class="a">al_get_system_config</span></a><span class="k2">(</span><span class="k2">)</span>, <span class="s">"system"</span>, <span class="s">"driver"</span>, <span class="s">"NONE"</span><span class="k2">)</span><span class="k2">;</span>
<a href="http://www.allegro.cc/manual/al_init"><span class="a">al_init</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

Only problem could be that even things like filesystem access are somewhat platform dependent, so may have to shuffle some things around a bit.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Wed, 03 Aug 2016 03:00:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>AFAIK, for filesystem it uses stdio stuff, doesn&#39;t it? May be Android or iOS needs some weird stuff but I think this feature wont be used in such platforms.</p><p>For the API I think the version 4 way should be the best one. A collection of constants or an <i>enum</i> with several options.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Wed, 03 Aug 2016 14:23:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You could have non stdio stuff. My SpeedHack/TINS game template basically uses PhyFS. Also, there&#39;s a memfile thing that I haven&#39;t looked into.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (MiquelFire)</author>
		<pubDate>Thu, 04 Aug 2016 01:29:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>PhyFS is an add-on.  So if you don&#39;t initialize it, it won&#39;t be used. I&#39;m asking about the Allegro core, and may be the image and codec add-ons.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Thu, 04 Aug 2016 13:22:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>This seems like a niche enough feature to add a new version of <span class="source-code"><a href="http://www.allegro.cc/manual/al_install_system"><span class="a">al_install_system</span></a></span>, e.g. <span class="source-code">al_install_system_none</span> or w/e.</p><p>I don&#39;t exactly know what is involved in this system none though, so somebody else needs to implement it. In particular, Allegro uses TLS pretty heavily inside pretty much everywhere, and that pthread crash might be TLS related. It might end up being a lot of work.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Fri, 05 Aug 2016 10:36:59 +0000</pubDate>
	</item>
</rss>
