From 45cf9667eb6154e664a5a8deb512e2bd8918f636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Andr=C3=A9n=20Zachrisson?= Date: Fri, 30 Oct 2015 23:07:56 +0100 Subject: [PATCH] It is ok to not have a full path in the cue --- cue2pops.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cue2pops.c b/cue2pops.c index 386d748..640a3f9 100644 --- a/cue2pops.c +++ b/cue2pops.c @@ -479,11 +479,10 @@ int main(int argc, char **argv) break; // YES ! } } - if(i == 0) { // No path in argv[1] + No path in the cuesheet ? Then it's FUQD :( . - printf("Error: Cannot find %s that is linked to the cue sheet\n\n", ptr); - free(cuebuf); - free(dumpaddr); - return 0; + + if(i == 0) { + // Having a filename without hierarchy is perfectly ok. + strcpy(dumpaddr, argv[1]); } else { // Here we've got the full CUE path. We're gonna use it to make the BIN path. strcpy(dumpaddr, argv[1]); /* Why should I use strrchr when I can do a n00ber thing ;D */