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>
> > TuxType and TuxMath both try out various paths to see if<br>
> they are<br>
> > valid, and subsequently the first valid path identified is<br>
> used to<br>
> > find the data files. In TuxType, these paths are:<br>
> ><br>
> > const char PATHS[NUM_PATHS][FNLEN] =<br>
> > {<br>
> > DATA_PREFIX"/share/"PACKAGE"/data",<br>
> added "/boot/apps/Games/TuxTyping2/share/tuxtype/data"<br>
> > "/usr/share/"PACKAGE"/data",<br>
> > "/usr/local/share/"PACKAGE"/data",<br>
> > "./data"<br>
> > };<br>
><br>
> Hmm - I guess we need to dig into the actual function that is testing<br>
> the paths and enable some debugging output to see what is happening.<br>
> IIRC, the testing is done by CheckFile() that tries to open the path<br>
> as either a file or dir.</div></blockquote><div><br> 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. On tuxtype, you can use the -d command-line arg at run time to generate debugging output (tuxmath needs to be recompiled for debugging). Looking at the code, running tuxtype -d should tell us the exact spelling of the paths that are actually being tested. If "/boot/apps/Games/TuxTyping2/share/tuxtype/date" really exists, but opendir() is failing to open it, something really weird is going on. <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? 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> </div></div><br>