home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff258.lzh
/
STReplay
/
DEMOS
/
play.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-10-18
|
778b
|
48 lines
/* Play.c
Soundtracker-Player using "STReplay.Library"
by Olli, dem Größten
for Lattice C 5.02
*/
#include "streplay.h"
#include <proto/exec.h>
#include <workbench/startup.h>
#include <proto/dos.h>
extern struct WBStartup *WBenchMsg;
struct Library *STReplayBase;
long LoadModule(char *);
void StartSong(void);
void UnloadModule(void);
_main(line)
char *line;
{
char *temp;
if(!(STReplayBase=OpenLibrary("streplay.library",33)))
return(20);
if(!WBenchMsg)
{
while(*line!=' '&&*line) line++;
temp=line++;
while(*temp!=10) temp++;
*temp=0;
}
else
{
CurrentDir(WBenchMsg->sm_ArgList[1].wa_Lock);
line=WBenchMsg->sm_ArgList[1].wa_Name;
}
if(LoadModule(line)) UnloadModule();
else StartSong();
CloseLibrary(STReplayBase);
return(0);
}