Change the working directory in the C program. I forget the function call that does this, but there should be a Win32 function that does it for you.
Mind you, that would involve querying the registry to find the halflife directory. Why would you want to do that? Why not just make a shortcut like everyone else, and save yourself the hassle :P > Well, but how can I get the execl function working with hl.exe -game albator > ?? > > - Cortex : HL Albator coder and mapper ( www.hlalbator.fr.st ) > - email : [EMAIL PROTECTED] & ICQ : 71548738 > > ----- Original Message ----- > From: "Cortex" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, June 09, 2002 9:32 PM > Subject: Re: [hlcoders] hl.exe bug report ? > > > | wow... thx :) I understand now the "Change directory" command of > | Worldcraft/Hammer. > | > | All works fine now :) It was "quite easy" :) > | > | - Cortex : HL Albator coder and mapper ( www.hlalbator.fr.st ) > | - email : [EMAIL PROTECTED] & ICQ : 71548738 > | > | ----- Original Message ----- > | From: "Kuja" <[EMAIL PROTECTED]> > | To: <[EMAIL PROTECTED]> > | Sent: Sunday, June 09, 2002 9:20 AM > | Subject: RE: [hlcoders] hl.exe bug report ? > | > | > | | Yeah, the shortcut has to "start in" the hl directory, or it doesnt know > | how > | | to find your mods. > | | > | | -----Original Message----- > | | From: [EMAIL PROTECTED] > | | [mailto:[EMAIL PROTECTED]]On Behalf Of Cortex > | | Sent: Sunday, June 09, 2002 2:02 AM > | | To: [EMAIL PROTECTED] > | | Subject: [hlcoders] hl.exe bug report ? > | | > | | > | | Hi, > | | > | | a month ago, I distributed the first private release of my mod to a few > | | players, to get them test it. In the install procedure, a link is added > to > | | the start menu, with arguments : -game albator. When the testers have > ran > | | the mod by this link, in the "LAN/Create game" menu, the maps of HL > | Classic, > | | instead of mines, were displayed. Really annoying... I really don't know > | | what happen, since when I use "Start menu/Run... -> ...\hl.exe - game > | | albator", all works fine... > | | > | | Recently, for the need of my mod, I made a little DOS app which use > execl > | to > | | launch hl.exe. Here is the line which launches HL : > | | > | | _execl(hlpath, hlpath, "-console", "-game Albator", "-dev", 0); > | | > | | The bug which was reported by the beta-testers happens when I use the > DOS > | | app... So, it's very weird, because all "my" new game (btns_main, > etc...) > | | interface is loaded ! > | | > | | The other thing which amazes me is that FLF, FA, CS (etc...) uses simple > | | links like the one I use. They work fine for them... So, it'd be a > single > | | problem with MY mod or something else has already ran into this ??? > | | > | | Thx in advance for any answer... > | | > | | - Cortex : HL Albator coder and mapper ( www.hlalbator.fr.st ) > | | - email : [EMAIL PROTECTED] & ICQ : 71548738 > | | > | | > | | _______________________________________________ > | | 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 > > --------------------------------------- Eighty percent of life is showing up. -- Woody Allen _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

