--
[ Picked text/plain from multipart/alternative ]
Brilliant! Thanks again, it works perfectly now.
Regards,
Paul
On 2/22/07, Yahn Bernier <[EMAIL PROTECTED]> wrote:
>
> Try it w/o the / in from of gameinfo.txt and it should work:
>
> filesystem->RelativePathToFullPath("gameinfo.txt", "MOD", fullpath,
> sizeof(fullpath));
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Paul Peloski
> Sent: Wednesday, February 21, 2007 10:34 PM
> To: [email protected]
> Subject: Re: [hlcoders] Resolve relative paths to full path?
>
> --
> [ Picked text/plain from multipart/alternative ] Err.. maybe I spoke too
> soon,
>
> filesystem->RelativePathToFullPath("/gameinfo.txt", "MOD", fullpath,
> sizeof(fullpath));
>
> Puts "/gameinfo.txt" in fullpath and returns NULL.. I wasn't sure about
> "MOD" so I tried a few different things including NULL and it did the
> same thing each time. Any ideas?
>
> Regards,
>
> Paul
>
> On 2/22/07, Paul Peloski <[EMAIL PROTECTED]> wrote:
> >
> > Wow, how did I miss that. Thanks Yahn.
> >
> > Regards,
> >
> > Paul
> >
> > On 2/22/07, Yahn Bernier <[EMAIL PROTECTED] > wrote:
> > >
> > > Try: IFileSystem::RelativePathToFullPath
> > >
> > > You might need to have an actual filename under the subfolder, but
> > > that's the function I think you want.
> > >
> > > Yahn
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto: [EMAIL PROTECTED] On Behalf Of Paul
> > > Peloski
> > > Sent: Wednesday, February 21, 2007 8:26 PM
> > > To: [email protected]
> > > Subject: [hlcoders] Resolve relative paths to full path?
> > >
> > > --
> > > [ Picked text/plain from multipart/alternative ] Hi guys,
> > >
> > > Is there an easy way to resolve the relative path:
> > >
> > > /resource/ to C:\Program
> > > Files\Steam\SteamApps\SourceMods\mod\resource\
> > >
> > > I looked through the SDK for a while but I couldn't find and easy
> > > solution.
> > > I stumbled on something that does part of what I want,
> > >
> > > CFSSteamSetupInfo info;
> > > FileSystem_SetupSteamEnvironment( info );
> > >
> > > Which will return the actual mod folder, but still I have to
> > > concatenate
> > >
> > > and massage the paths myself. Is there an easier way?
> > >
> > > Regards,
> > >
> > > Paul
> > > --
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list
> > > archives, please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list
> > > archives, please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> >
> --
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders