reverts ini file generation to pre rev885 behaviour

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1066 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
squall-leonhart 2012-01-16 01:48:28 +00:00
parent 9e1b0c4aee
commit c55fc8a937
1 changed files with 1 additions and 10 deletions

View File

@ -28,17 +28,8 @@ void regInit(const char *path, bool force)
delete regVbaPath;
regVbaPath = NULL;
}
// If vbam.ini exists in executable's folder, use it. Else create/use one in %appdata% folder.
regVbaPath = new CString();
regVbaPath->Format(MakeInstanceFilename("%s\\vbam.ini"), path);
if( !force && !utilFileExists( regVbaPath->GetString() ) ) {
TCHAR appdata[MAX_PATH+1];
SHGetFolderPath( NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT, appdata );
regVbaPath->Format( "%s\\VBA-M", appdata );
SHCreateDirectoryEx( NULL, regVbaPath->GetString(), NULL );
regVbaPath->Append( "\\vbam.ini" );
}
regVbaPath->Format("%s\\vbam.ini", path);
}
void regShutdown()