[MODIF] langs.xml will be located in %appdate%/Notepad++/ due to UAC issue.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@708 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
8b2fe6f459
commit
f2590e1447
|
@ -813,10 +813,10 @@ bool NppParameters::load()
|
|||
if (_hUXTheme)
|
||||
_enableThemeDialogTextureFuncAddr = (WNDPROC)::GetProcAddress(_hUXTheme, "EnableThemeDialogTexture");
|
||||
|
||||
//---------------------------------------//
|
||||
// langs.xml : for every user statically //
|
||||
//---------------------------------------//
|
||||
generic_string langs_xml_path(_nppPath);
|
||||
//--------------------------//
|
||||
// langs.xml : for per user //
|
||||
//--------------------------//
|
||||
generic_string langs_xml_path(_userPath);
|
||||
PathAppend(langs_xml_path, TEXT("langs.xml"));
|
||||
|
||||
BOOL doRecover = FALSE;
|
||||
|
@ -833,7 +833,7 @@ bool NppParameters::load()
|
|||
|
||||
if (doRecover)
|
||||
{
|
||||
generic_string srcLangsPath(_nppPath);
|
||||
generic_string srcLangsPath(_userPath);
|
||||
PathAppend(srcLangsPath, TEXT("langs.model.xml"));
|
||||
::CopyFile(srcLangsPath.c_str(), langs_xml_path.c_str(), FALSE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue