Hi,<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; TuxType and TuxMath both try out various paths to see if<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; they are<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; valid, and subsequently the first valid path identified is<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; used to<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; find the data files. &nbsp;In TuxType, these paths are:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; const char PATHS[NUM_PATHS][FNLEN] =<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; DATA_PREFIX&quot;/share/&quot;PACKAGE&quot;/data&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; added &quot;/boot/apps/Games/TuxTyping2/share/tuxtype/data&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &quot;/usr/share/&quot;PACKAGE&quot;/data&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &quot;/usr/local/share/&quot;PACKAGE&quot;/data&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &quot;./data&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; };<br>
&gt;<br>
&gt; Hmm - I guess we need to dig into the actual function that is testing<br>
&gt; the paths and enable some debugging output to see what is happening.<br>
&gt; IIRC, the testing is done by CheckFile() that tries to open the path<br>
&gt; as either a file or dir.</div></blockquote><div><br>&nbsp;Yes, the current scheme tries opendir() and fopen() on the paths listed in that array, and uses the first valid one to load the data files.&nbsp; On tuxtype, you can use the -d command-line arg at run time to generate debugging output (tuxmath needs to be recompiled for&nbsp; debugging).&nbsp; Looking at the code, running tuxtype -d should tell us the exact spelling of the paths that are actually being tested.&nbsp; If &quot;/boot/apps/Games/TuxTyping2/share/tuxtype/date&quot; really exists, but opendir() is failing to open it, something really weird is going on.&nbsp; <br>
<br>In any event, tuxmath is able to find the data path, so we should be able to use it as a model to get tuxtype to work again on BeOS.<br><br>Cheers,<br><br>David<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
PS If you want to try out Haiku you can always download a raw or vmware<br>
image from <a href="http://haiku-os.org" target="_blank">haiku-os.org</a> (or try the - a bit older - images I have on<br>
</blockquote><div><br>How do I try the HDD images?&nbsp; Do I make a blank partition and just copy the image to it with dd (e.g. dd if=$HAIKU_IMAGE_FILE of=/dev/sda?, or similar)?<br>&nbsp;</div></div><br>