Enhance default keys search result: '/', '\' and 'x' means respectively A, B and both key(s) found.

This commit is contained in:
Romuald Conty 2012-06-02 00:44:58 +00:00
parent 3545975303
commit 262e206b0a

View file

@ -301,8 +301,12 @@ int main(int argc, char * const argv[]) {
t.sectors[i].foundKeyB = true;
}
}
if ((t.sectors[i].foundKeyA) || (t.sectors[i].foundKeyB)) {
if ((t.sectors[i].foundKeyA) && (t.sectors[i].foundKeyB)) {
fprintf(stdout, "x");
} else if (t.sectors[i].foundKeyA) {
fprintf(stdout, "/");
} else if (t.sectors[i].foundKeyB) {
fprintf(stdout, "\\");
} else {
fprintf(stdout, ".");
}