First commit ~0,10

This commit is contained in:
2021-09-08 21:26:43 +02:00
commit 37dffcdec3
188 changed files with 23679 additions and 0 deletions

24
MODS/EXAMPLE1.C Normal file
View File

@ -0,0 +1,24 @@
#include <stdio.h>
#include <process.h>
#include "modplay.inc"
unsigned int _stklen = 0x1000; /* set stack size to 4kB */
unsigned int _heaplen = 0x0000; /* no heap required */
unsigned char Mod_File[128];
unsigned char *DOS_Shell="C:\\COMMAND.COM";
void main(int argc, char *argv[])
{
if (argc>1) {
strcpy(Mod_File, argv[1]);
Mod_Init(Detection,0,0,0);
Mod_Load(Mod_File);
if (Channels!=0) {
Mod_Play(1);
DOS_Shell=getenv("COMSPEC");
if (spawnl(P_WAIT, DOS_Shell, NULL)!=-1) printf("\nReturned... Music output stopped.\n");
}
}
else printf("\nPlease specify a modulefile on the commandline !\n");
}