From 3def1d9a49e160a17ba6f7b64d2b75215ef5b122 Mon Sep 17 00:00:00 2001 From: dkeruza Date: Sat, 11 Nov 2023 16:24:10 -0500 Subject: [PATCH] Added game detection --- src/lindbergh/config.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/lindbergh/config.c b/src/lindbergh/config.c index e7e9bab..17fd68c 100644 --- a/src/lindbergh/config.c +++ b/src/lindbergh/config.c @@ -70,6 +70,24 @@ static int detectGame() return 0; } + if (strstr(program_invocation_name, "abc1080")) + { + config.game = ABC; + return 0; + } + + if (strstr(program_invocation_name, "drive")) + { + config.game = SRTV; + return 0; + } + + if (strstr(program_invocation_name, "dsr")) + { + config.game = RTUNED; + return 0; + } + config.game = UNKNOWN; return 1; }