Read and write snippet files in a subdirectory of the application directory when in portable mode. Fixes issue #2980.

This commit is contained in:
Ansgar Becker
2012-12-31 10:30:33 +00:00
parent a7c57e377f
commit 65d7e2ffab

View File

@ -801,7 +801,11 @@ end;
function DirnameSnippets: String;
begin
// Folder for snippets
Result := DirnameCommonAppData + 'Snippets\'
if AppSettings.PortableMode then
Result := ExtractFilePath(ParamStr(0))
else
Result := DirnameCommonAppData;
Result := Result + 'Snippets\';
end;