From c55fc8a937f1c6ffa4fdc0115023d7bd104b4f43 Mon Sep 17 00:00:00 2001 From: squall-leonhart Date: Mon, 16 Jan 2012 01:48:28 +0000 Subject: [PATCH] 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 --- src/win32/Reg.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/win32/Reg.cpp b/src/win32/Reg.cpp index cbb248ef..39dd7d4e 100644 --- a/src/win32/Reg.cpp +++ b/src/win32/Reg.cpp @@ -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()