ide: Patch tool improvements

git-svn-id: svn://ultimatepp.org/upp/trunk@13494 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-07-13 14:22:11 +00:00
parent 3758ed8b45
commit f7548dd925
3 changed files with 37 additions and 22 deletions

View file

@ -90,6 +90,8 @@ bool PatchDiff::Open(const char *patch_path, const Vector<String>& target_dirs)
return false;
}
patch_file <<= patch_path;
if(!patch.MatchFiles(target_dirs, pi)) {
Exclamation("Unable to match the directory structure!");
return true;
@ -97,7 +99,6 @@ bool PatchDiff::Open(const char *patch_path, const Vector<String>& target_dirs)
String target_dir = patch.GetTargetDir();
patch_file <<= patch_path;
this->target_dir <<= target_dir;
list.Clear();