mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
28 lines
908 B
Plaintext
28 lines
908 B
Plaintext
diff -ur ../cdplay-0.92.orig/main.c ./main.c
|
|
--- ../cdplay-0.92.orig/main.c Mon Nov 17 04:26:26 1997
|
|
+++ ./main.c Sat Jun 27 00:29:34 1998
|
|
@@ -39,7 +39,9 @@
|
|
struct timeval stime;
|
|
|
|
/* Parse arguments */
|
|
- cd_device=DEVICE;
|
|
+ cd_device=getenv("CDROM");
|
|
+ if (cd_device==NULL)
|
|
+ cd_device=DEVICE;
|
|
if(argc>1 && !strcmp(argv[1],"-d"))
|
|
cd_device=argv[2];
|
|
else if(argc>1)
|
|
@@ -77,10 +79,11 @@
|
|
else if(cmd[0]=='r'){message="rew";rew();}
|
|
else if(cmd[0]=='s'){message="stop";stop();}
|
|
else if(cmd[0]=='e'){message="eject";eject();}
|
|
- else if(cmd[0]==' ') cdpause();
|
|
+ else if(cmd[0]==' ') cdsoftpause();
|
|
else if(cmd[0]=='+'){message="more vol";more_vol();}
|
|
else if(cmd[0]=='-'){message="less vol";less_vol();}
|
|
else if(cmd[0]=='q'){message="bye!";do_exit(0);}
|
|
+ else if(cmd[0]=='P') cdpause();
|
|
}
|
|
update_cdinfo();
|
|
move_up(5);
|