From 262e206b0a66364e154dbb64b75fa629729b4f19 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Sat, 2 Jun 2012 00:44:58 +0000 Subject: [PATCH] Enhance default keys search result: '/', '\' and 'x' means respectively A, B and both key(s) found. --- src/mfoc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mfoc.c b/src/mfoc.c index 273b18f..861beea 100644 --- a/src/mfoc.c +++ b/src/mfoc.c @@ -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, "."); }