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:
parent
9e1b0c4aee
commit
c55fc8a937
|
@ -28,17 +28,8 @@ void regInit(const char *path, bool force)
|
||||||
delete regVbaPath;
|
delete regVbaPath;
|
||||||
regVbaPath = NULL;
|
regVbaPath = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If vbam.ini exists in executable's folder, use it. Else create/use one in %appdata% folder.
|
|
||||||
regVbaPath = new CString();
|
regVbaPath = new CString();
|
||||||
regVbaPath->Format(MakeInstanceFilename("%s\\vbam.ini"), path);
|
regVbaPath->Format("%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" );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void regShutdown()
|
void regShutdown()
|
||||||
|
|
Loading…
Reference in New Issue