Home » Community » U++ community news and announcements » .ini file helpers
Re: .ini file helpers [message #36841 is a reply to message #36837] |
Wed, 11 July 2012 10:12   |
 |
mirek
Messages: 14256 Registered: November 2005
|
Ultimate Member |
|
|
mirek wrote on Tue, 10 July 2012 22:19 | INI_* are just top-level encapsulation for GetIniKey.
| Could you please explain that? I don't see any relation between these two things. (Maybe I'm just blind )
[/quote]
Well, there is something like key=value type of configuration file which we want to support. We want to support reading such files and obtaining values for specific keys. Hence GetIniKey.
On higher level, we would like framework to perhaps take care about some of these values - parse the Value for appropriate type, store into global variable. That is INI_* stuff.
Quote: |
mirek wrote on Tue, 10 July 2012 22:19 | How about this:
void ReloadIniFile()
{
s_ini_loaded = false;
}
void SetIniFile(const char *name) {
Mutex::Lock __(sMtx);
strcpy(sIniFile, name);
ReloadIniFile();
}
| Ok, that would work too 
|
Unfortunately, it is not that simple - we are using ONCELOCK_(loaded) in Ini variables, will need some more adjusting (as would need your version).
Mirek
|
|
|
Goto Forum:
Current Time: Wed Apr 30 06:36:31 CEST 2025
Total time taken to generate the page: 0.04932 seconds
|