This commit is contained in:
parent
f8194ab3b1
commit
e9f123dec7
8 changed files with 749 additions and 0 deletions
44
source/fileio/filetab.cpp
Normal file
44
source/fileio/filetab.cpp
Normal file
|
@ -0,0 +1,44 @@
|
|||
/******************/
|
||||
/*** File Table ***/
|
||||
/******************/
|
||||
|
||||
/*******************************************************************************/
|
||||
char *FilenameList[FILEPOS_MAX]=
|
||||
{
|
||||
"BIGLUMP.BIN",
|
||||
"TRACK1.IXA",
|
||||
"CLIMAX.STR",
|
||||
"INTRO.STR",
|
||||
"LEVEL1.STR",
|
||||
"LEVEL2.STR",
|
||||
"LEVEL3.STR",
|
||||
"LEVEL4.STR",
|
||||
"LEVEL5.STR",
|
||||
"LEVEL6.STR",
|
||||
"LEVEL7.STR",
|
||||
"ZORD1.STR",
|
||||
"ZORD2.STR",
|
||||
/*
|
||||
"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]);
|
||||
while ( !CdSearchFile(&RetFile,Name) );
|
||||
Dst[Loop]=CdPosToInt(&RetFile.pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue