SBSPSS/source/fileio/filetab.cpp

47 lines
838 B
C++
Raw Normal View History

2000-08-29 21:52:28 +02:00
/******************/
/*** File Table ***/
/******************/
/*******************************************************************************/
char *FilenameList[FILEPOS_MAX]=
{
"BIGLUMP.BIN",
2001-05-03 21:11:09 +02:00
"TRACK1.IXA",
2001-04-17 22:57:00 +02:00
"THQ.STR",
"INTRO.STR",
2001-01-19 16:55:08 +01:00
//"CLIMAX.STR",
//"LEVEL1.STR",
//"LEVEL2.STR",
//"LEVEL3.STR",
//"LEVEL4.STR",
//"LEVEL5.STR",
//"LEVEL6.STR",
//"LEVEL7.STR",
//"ZORD1.STR",
//"ZORD2.STR",
2000-08-29 21:52:28 +02:00
/*
"DEMO2.STR",
"DEMO3.STR",
"DEMO4.STR",
"DEMO5.STR",
"DEMO6.STR"
*/
};
/*******************************************************************************/
void CalcFilePos(int *Dst)
{
for (int Loop=0;Loop<FILEPOS_MAX;Loop++)
{
CdlFILE RetFile;
int Pos;
char Name[32];
sprintf(Name,"\\%s;1",FilenameList[Loop]);
2001-05-03 21:11:09 +02:00
printf("%s\n",Name);
2000-08-29 21:52:28 +02:00
while ( !CdSearchFile(&RetFile,Name) );
Dst[Loop]=CdPosToInt(&RetFile.pos);
}
}