redirect: Temporarily teach it about ShooterGame for debugging

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
Ikey Doherty
2017-10-21 19:02:58 +01:00
parent 4f6166bdce
commit 971d0c280e
+10 -1
View File
@@ -155,7 +155,16 @@ __attribute__((constructor)) static void lsi_redirect_init(void)
return;
}
fprintf(stderr, "Loaded lsi_redirect for: %s\n", process_name);
/* Temporary hack, we'll make this more generic later */
if (strcmp(process_name, "ShooterGame") == 0) {
lsi_override = true;
}
if (!lsi_override) {
return;
}
fprintf(stderr, "Enabled lsi_redirect for: %s\n", process_name);
}
_nica_public_ int open(const char *p, int flags, ...)