Skip to content

Commit

Permalink
updated test to see if a filter is in that specific version
Browse files Browse the repository at this point in the history
  • Loading branch information
lostjared committed Feb 10, 2019
1 parent 86f3585 commit 4b3280e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Binary file not shown.
9 changes: 9 additions & 0 deletions Acid.Cam.v2.OSX/AC_Controller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2436,6 +2436,15 @@ - (IBAction) custom_Load: (id) sender {
}
s_left = item.substr(0,pos);
s_right = item.substr(pos+1, item.length());

if(ac::filter_map.find(s_left) == ac::filter_map.end()) {
_NSRunAlertPanel(@"Filter not in this version", [NSString stringWithFormat:@"This filter: %s is not found in this version maybe using older version try updating", s_left.c_str()], @"Ok", nil, nil);
return;
}
if(s_right != "None" && ac::filter_map.find(s_right) == ac::filter_map.end()) {
_NSRunAlertPanel(@"Filter not in this version", [NSString stringWithFormat:@"This filter: %s is not found in this version maybe using older version try updating", s_right.c_str()], @"Ok", nil, nil);
return;
}
int val1 = ac::filter_map[s_left];
int val2 = 0;
if(s_right == "None")
Expand Down

0 comments on commit 4b3280e

Please sign in to comment.