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 ]


On December 14, 2008, Matthew Leverton wrote:
> 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."

My Documents gets pointed at C:\Documents and Settings\User\Document afaik. I 
didn't assign the values willy nilly ;)

> --
> Matthew Leverton
>
> ---------------------------------------------------------------------------
>--- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
> Nevada. The future of the web can't happen without you.  Join us at MIX09
> to help pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com
>/


-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




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