-#if 0
- wxString filename;
- m_configFilename << "/usr/local/share/" << appName << ".scores";
- if (access(m_configFilename, F_OK) == 0)
- {
- if (access(m_configFilename, R_OK | W_OK) != 0)
- {
- // file is not r/w - use local file instead
- m_configFilename = wxFileConfig::GetLocalFileName(appName);
- }
- }
- else
- {
- int fd = creat(m_configFilename, 0666);
-
- if (fd < 0)
- {
- // failed to create file - use local file instead
- m_configFilename = wxFileConfig::GetLocalFileName(appName);
- }
- else
- {
- // ensure created file has rw-rw-rw permissions
- close(fd);
- }
- }
-#endif
-
- m_config = new wxConfig(appName, _T("wxWidgets"), appName, wxEmptyString,
+ m_config = new wxConfig(appName, wxT("wxWidgets"), appName, wxEmptyString,