Re: [AD] Error in set_config_file() function with non existing file. |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Grzegorz Adam Hankiewicz wrote:
As discovered by Apollo8, calling set_config_file before allegro_init is dangerous because if the file doesn't exist, or it is a directory, allegro will core.
Generally, I'd say to just not call that function before allegro_init (like almost every other Allegro function). However, I just realized that ther is one variable that install_allegro uses, the system= var for X or Console.
Are there any more besides that allegro_init needs? Perhaps there's another, cleaner, way to handle this since it's not really a config "option" in the strictest sense of the word.. but just a way to tell Allegro what the environment is.
- Kitty Cat
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |