Re: [GD-General] A portable preferences library
Brought to you by:
vexxed72
From: Brian H. <ho...@py...> - 2003-12-03 18:38:10
|
On Wed, 3 Dec 2003 15:53:17 +0100 (CET), ma...@ch... wrote: > On Tue, 2 Dec 2003, Brian Hook wrote: > > >> PrefsLib_OpenPrefs( &p, "~/MyCompany/ThisGame" ); //local to user >> > > I hope this maps to ~/.MyCompany ? Yes, that is the intent, although in retrospect, encoding that in the filename is probably not the right way to do things. I'll probably change it to: PrefsLib_OpenPrefs( &p, "MyCompany/ThisGame", PLFLAG_SYSTEM ); where you can specify PLFLAG_SYSTEM, PLFLAG_USER or PLFLAG_CURRENT_DIR. Brian |