RE: [GD-General] A portable preferences library
Brought to you by:
vexxed72
From: Andrew G. <ag...@cl...> - 2003-12-04 22:10:16
|
The accepted wisdom for the past few years has been for applications to use SHGet*FolderLocation(), it's certainly something that Microsoft have been advocating since Win2K started to become mass market and now with every new consumer system shipping with a varient of XP it's even more important. GetWindows/System directory are definitely things an application shouldn't be writing to in the normal course of its operation... The common paths exposed via environment variables (some of them at least!) are useful for batch files & scripts. _____________________________________ andrew grant | programmer | climax brighton ag...@cl... - www.climax.co.uk > -----Original Message----- > From: Brian Hook [mailto:ho...@py...] > Sent: 04 December 2003 21:57 > To: gam...@li... > Subject: RE: [GD-General] A portable preferences library > > > > I agree the registry isn't the place to store the data, but > neither is > > the game install folder. Anything you need to save from > your game and > > that doesn't ask the user for a path should go into the whatever's > > returned by SHGetFolderLocation(.., CSIDL_APPDATA, ..); > > So what's the accepted wisdom now on use SHGetSpecialFolderLocation() > vs. GetWindowsDirectory(), GetSystemDirectory() and getenv( > "HOMEPATH" > )? > > Brian > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us > help YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Gamedevlists-general mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU7 > |