Re: [AD] config files and dynamic libs

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Making a dll from only the file foo.c below, and
> an executable using that dll from the main.c
> works fine (allegro.cfg in the directory of
> the executable is updated). If I move
> 'allegro_init' from main to the beginning of
> function foo it will no longer work (no
> update of the same allegro.cfg).

The docs say:
"By default the configuration data is read from a file called allegro.cfg,
which can be located either in the same directory as the program executable,
or the directory pointed to by the ALLEGRO environment variable."

As Allegro looks into only one directory ("the same directory as the program
executable"), it can't look both into the directory of the main executable
and into the directory of the foo executable (i.e the DLL). So it looks into
the directory of the executable which contains allegro_init().

--
Eric Botcazou



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/