Re: [AD] Additions for al_get_path() (was Re: Allegro 5 TODOs (from wiki)) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Coordination of admins/developers of the game programming library Allegro" <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] Additions for al_get_path() (was Re: Allegro 5 TODOs (from wiki))
- From: "Matthew Leverton" <meffer@xxxxxxxxxx>
- Date: Sun, 14 Dec 2008 18:56:35 -0600
On Sun, Dec 14, 2008 at 4:02 PM, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> On 14-Dec-08, at 2:22 AM, Matthew Leverton wrote:
>> Both Windows XP and Vista have application folders and user data
>> folders that can be queried.
>
> Sure, but that's AL_PROGRAM_PATH and AL_USER_DATA_PATH, right?
> My reference is http://msdn.microsoft.com/en-us/library/bb762494.aspx.
> Apparently there's a newer interface that should be used on Vista...
>
I don't know what Allegro constants we are talking about including.
Searching for al_get_path() gave me
<http://wiki.allegro.cc/index.php?title=Al_get_path>:
enum {
AL_PROGRAM_PATH = 0,
AL_TEMP_PATH,
AL_SYSTEM_DATA_PATH,
AL_USER_DATA_PATH,
AL_USER_HOME_PATH,
AL_LAST_PATH // must be last
};
AL_PROGRAM_PATH = folder of executable? it would be useful to have that.
AL_TEMP_PATH = GetTempPath() (e.g. c:\temp)
AL_SYSTEM_DATA_PATH = CSIDL_COMMON_APPDATA (e.g. C:\Documents and
Settings\All Users\Application Data\Foo)
AL_USER_DATA_PATH = CSIDL_APPDATA (e.g. C:\Documents and
Settings\Matthew\Application Data\Foo)
AL_USER_HOME_PATH = CSIDL_PERSONAL (e.g. C:\Documents and
Settings\Matthew\Documents)
Note that the home path is probably more accurately CSIDL_PROFILE, but
you shouldn't create your own folders there. Thus, I think the most
natural Windows equivalent is "my documents."
--
Matthew Leverton