X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fmenu.c;h=9ddbe3762d7010963f816e03b8fd65c9db900305;hp=0088a632f05702551e9302c10818adbf23bf5536;hb=c3341ffd2f06fadeca07b74279070c334b8d8cc1;hpb=85f2398236b54db46340dad14330102f281ca4f3 diff --git a/frontend/menu.c b/frontend/menu.c index 0088a632..9ddbe376 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -903,8 +903,6 @@ static void get_line(char *d, size_t size, const char *s) len = size - 1; strncpy(d, s, len); d[len] = 0; - - mystrip(d); } static void keys_write_all(FILE *f) @@ -1011,7 +1009,10 @@ static void keys_load_all(const char *cfg) while (p != NULL && (p = strstr(p, "binddev = ")) != NULL) { p += 10; + // don't strip 'dev' because there are weird devices + // with names with space at the end get_line(dev, sizeof(dev), p); + dev_id = in_config_parse_dev(dev); if (dev_id < 0) { printf("input: can't handle dev: %s\n", dev);