[Gambas-devel] Designing good APIs

Laurent Carlier lordheavy at ...141...
Fri Jul 15 21:41:38 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,
> 

As always i've read too fast :(

Yes, it can fix the problem of files as part of the binary !
Files are copy in $TEMP dir, so the component/projet can access it
without problems :)

Great idea and nice fix !

-- 

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




More information about the Devel mailing list