Re: [AD] Magic main in Windows |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
On Mon, 2 Aug 2004, Evert Glebbeek wrote:
On Monday 02 August 2004 15:25, Sam Hocevar wrote:I fully agree. I'd say drop it: applications know how they are called anyway, don't they?They know how, but they don't know where they are in the filesystem. The main use of get_executable_name is to find the path where the executable is in order to locate the game data files. This makes sense in Windows, but not much in *nix anyway, at least for well-behaved applications. So it's use is limited. Having this functionality eases porting Windows programs though.
What about adding these two functions: get_data_path()- returns path where datafiles are located (path with executable on Win, /usr/share/XY on *nix)
get_state_path()- returns path where game state files (= saves, modifiable config files, etc.) should be stored (again path with executable on Win, ~/.XY on *nix)
Of course that brings the problem what XY is/should be :-) Have a nice day. Stepan Roh
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |