more MSDOS fixes (config file location)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -297,8 +297,8 @@ wxString wxFileConfig::GetLocalDir()
|
|||||||
{
|
{
|
||||||
wxString strDir;
|
wxString strDir;
|
||||||
|
|
||||||
#if defined(__WXMAC__)
|
#if defined(__WXMAC__) || defined(__DOS__)
|
||||||
// no local dir concept on Mac OS 9
|
// no local dir concept on Mac OS 9 or MS-DOS
|
||||||
return GetGlobalDir() ;
|
return GetGlobalDir() ;
|
||||||
#else
|
#else
|
||||||
wxGetHomeDir(&strDir);
|
wxGetHomeDir(&strDir);
|
||||||
@@ -349,7 +349,7 @@ wxString wxFileConfig::GetLocalFileName(const wxChar *szFile)
|
|||||||
|
|
||||||
str << szFile;
|
str << szFile;
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#if defined(__WINDOWS__) || defined(__DOS__)
|
||||||
if ( wxStrchr(szFile, wxT('.')) == NULL )
|
if ( wxStrchr(szFile, wxT('.')) == NULL )
|
||||||
str << wxT(".ini");
|
str << wxT(".ini");
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user