That call won't be reliable with orange box era games, when the SDK code comes out you should use the SteamApps()->GetAppData( <app id>, "language", ...) call to get the language the user wants to run the game in. App id would be the value you put in your mods gameinfo.txt.
- Alfred > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:hlcoders- > [EMAIL PROTECTED] On Behalf Of Mark Chandler > Sent: Wednesday, December 26, 2007 9:47 AM > To: [email protected] > Subject: RE: [hlcoders] Get users steam lang setting > > Found this function: > > vgui::system()- > >GetRegistryString("HKEY_LOCAL_MACHINE\\Software\\Valve\\Stea > m\\Language", language, 128) > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Maarten De > Meyer > Sent: Thursday, December 27, 2007 2:37 AM > To: [email protected] > Subject: Re: [hlcoders] Get users steam lang setting > > Not sure, but I always laugh when I see code like > > if ( g_Language.GetInt() == LANGUAGE_GERMAN ) > { > m_iGibModelIndex = PrecacheModel > ("models/germanygibs.mdl"); > } > else > { > m_iGibModelIndex = PrecacheModel ("models/gibs/hgibs.mdl"); > } > > that what you're looking for? > > > I was looking in the engine header files but couldn't see a function > which > > would return this value. Does any one know how to get it? > > > > Mark > > > > Perfect Dark Source > > > > _______________________________________________ > > 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

