reverts ini file generation to pre rev885 behaviour
This commit is contained in:
parent
b075ed7bf0
commit
d33d2a0d70
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue