mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-29 08:35:00 +02:00
fix case where argv[1] == ENOENT
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@102 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
d80b867622
commit
c8739c386b
@ -137,6 +137,11 @@ create_config ()
|
|||||||
fclose(config_file);
|
fclose(config_file);
|
||||||
free (config);
|
free (config);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
myconfig = &defconfig;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Fill the rest with defaults */
|
/* Fill the rest with defaults */
|
||||||
if (!myconfig->shed_user && myconfig->shed_uid == 0)
|
if (!myconfig->shed_user && myconfig->shed_uid == 0)
|
||||||
@ -314,9 +319,9 @@ loadbanner (struct dg_banner *ban)
|
|||||||
|
|
||||||
memset (buf, 0, 80);
|
memset (buf, 0, 80);
|
||||||
|
|
||||||
if (ban->len == 14) /* menu itself needs 10 lines, 24 - 10 */
|
if (ban->len == 12) /* menu itself needs 12 lines, 24 - 12 */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose (bannerfile);
|
fclose (bannerfile);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user