apply the vba config file rename to the trunk, this has come about because older versions use some values slightly differently which would cause those versions to fail to work or have the wrong settings.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1023 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
7a19748d88
commit
919c5fb7a8
|
@ -29,15 +29,15 @@ void regInit(const char *path, bool force)
|
|||
regVbaPath = NULL;
|
||||
}
|
||||
|
||||
// If vba.ini exists in executable's folder, use it. Else create/use one in %appdata% folder.
|
||||
// If vbam.ini exists in executable's folder, use it. Else create/use one in %appdata% folder.
|
||||
regVbaPath = new CString();
|
||||
regVbaPath->Format(MakeInstanceFilename("%s\\vba.ini"), path);
|
||||
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( "\\vba.ini" );
|
||||
regVbaPath->Append( "\\vbam.ini" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -429,12 +429,12 @@ BOOL VBA::InitInstance()
|
|||
systemVerbose = GetPrivateProfileInt("config",
|
||||
"verbose",
|
||||
0,
|
||||
MakeInstanceFilename("VBA.ini"));
|
||||
MakeInstanceFilename("vbam.ini"));
|
||||
|
||||
systemDebug = GetPrivateProfileInt("config",
|
||||
"debug",
|
||||
0,
|
||||
MakeInstanceFilename("VBA.ini"));
|
||||
MakeInstanceFilename("vbam.ini"));
|
||||
|
||||
wndClass = AfxRegisterWndClass(0, LoadCursor(IDC_ARROW), (HBRUSH)GetStockObject(BLACK_BRUSH), LoadIcon(IDI_MAINICON));
|
||||
|
||||
|
|
|
@ -286,7 +286,7 @@ bool opt_lt(const opt_desc &opt1, const opt_desc &opt2)
|
|||
return wxStrcmp(opt1.opt, opt2.opt) < 0;
|
||||
}
|
||||
|
||||
// FIXME: simulate MakeInstanceFilename(VBA.ini) using subkeys (Slave%d/*)
|
||||
// FIXME: simulate MakeInstanceFilename(vbam.ini) using subkeys (Slave%d/*)
|
||||
|
||||
void load_opts()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue