[Gambas-devel] Designing good APIs

Laurent Carlier lordheavy at ...141...
Fri Jul 15 21:24:58 CEST 2005


Benoit Minisini a écrit :
> 
> Here is something that may interest you and others:
> 
> I made a new API in gambas named GB.RealFileName(). It does the same thing as 
> GB.FileName() except that if the file is located inside the project 
> executable, then a temporary copy is made, and the path to this copy is 
> returned.
> 
> This way, the SDL component can load fonts and play musics that are located in 
> the project transparently. And I could make a functional executable of 
> Galaxia :-)
> 
> Regards,
> 

Yes it can be useful :) (in short term)

Currently, it isn't possible to add font as part of executable because
of buggy SDL_rwops/SDL_ttf. There's a patch on the SDL ML, but hadn't
test it. Perhaps it fix the issue :) Must wait the next release (1.2.9)

Perhaps in the next IDE add some "path ability",
a data dir -> files will be store in ($datadir), ...
if installed with autotools (at compilation time ?).


-- 

Laurent Carlier
jabber : LordHeavy at ...298...




More information about the Devel mailing list