[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2009-04-05, Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote:
> Thomas Fjellstrom wrote:
> >
> > Do you have a good reason? (and no, any code that looks like or is a
> > dirty hack doesn't count).
> >
> >
> > If people should be generating paths, we should make the common case the
> > easiest. That would mean using ALLEGRO_PATH everywhere.
>
> There are many cases where you have the filenames just as strings. For
> example:
>
> image = al_load_bitmap("hardcoded.png")
>
> or
>
> filename = al_read_config_value(...)
> image = al_load_bitmap(filename)
>
> And given how Allegro's use always was for simple programs, uses like
> these are likely the most common in fact.
And if you have an ALLEGRO_PATH to begin with, getting a plain string is
easy: al_path_to_string().
Peter