read -pilot arg with and without filename extension
This commit is contained in:
parent
ecf8a53e0c
commit
5bf5153f5b
|
@ -1,5 +1,9 @@
|
|||
D1X-Rebirth Changelog
|
||||
|
||||
20070510
|
||||
--------
|
||||
main/inferno.c: read -pilot arg with and without filename extension
|
||||
|
||||
20070509
|
||||
--------
|
||||
arch/ogl/gr.c, arch/sdl/gr.c, main/game.c, main/newmenu.c: update viewing values at Fullscreen Toggle; added Fullscreen Toggle to Menus and Demo Playback
|
||||
|
|
|
@ -629,6 +629,8 @@ int main(int argc,char **argv)
|
|||
}
|
||||
}
|
||||
strlwr(filename);
|
||||
if(!strstr(filename,".plr")) // if player hasn't specified .plr extension in argument, add it
|
||||
strcat(filename,".plr");
|
||||
if(!access(filename,4))
|
||||
{
|
||||
strcpy(strstr(filename,".plr"),"\0");
|
||||
|
|
Loading…
Reference in a new issue