fixed dynamic output dir for drag+drop

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401310
This commit is contained in:
Christian Hammacher 2007-08-10 22:43:44 +00:00
parent 5d195c6560
commit 9f4a682a1f
2 changed files with 6 additions and 2 deletions

View File

@ -56,8 +56,12 @@ begin
cfg := TIniFile.Create(ExtractFilePath(ParamStr(0)) + 'compiler.ini');
outdir := cfg.ReadString('Main', 'Output', '');
if (outdir <> '') and (DirectoryExists(outdir)) then
outdir := IncludeTrailingPathDelimiter(outdir)
if (outdir <> '') then begin
if (DirectoryExists(outdir)) then
outdir := IncludeTrailingPathDelimiter(outdir)
else if (DirectoryExists(ExtractFilePath(ParamStr(0)) + outdir)) then
outdir := ExtractFilePath(ParamStr(0)) + IncludeTrailingPathDelimiter(outdir);
end
else
outdir := '';
cfg.Free;

Binary file not shown.