// // Copyright 2020 Electronic Arts Inc. // // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free // software: you can redistribute it and/or modify it under the terms of // the GNU General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed // in the hope that it will be useful, but with permitted additional restrictions // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT // distributed with this program. You should have received a copy of the // GNU General Public License along with permitted additional restrictions // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection /*************************************************************************** ** C O N F I D E N T I A L --- W E S T W O O D A S S O C I A T E S ** *************************************************************************** * * * Project Name : Library - Filio header stuff. * * * * File Name : FILE.H * * * * Programmer : Scott K. Bowen * * * * Start Date : September 13, 1993 * * * * Last Update : April 11, 1994 * * * *-------------------------------------------------------------------------* * Functions: * * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ #ifndef FILE_H #define FILE_H #ifndef FILETEMP_H // This should be removed once the library is all intacked. #include "filetemp.h" #endif /*=========================================================================*/ /* File IO system defines and enumerations */ /*=========================================================================*/ #define XMAXPATH 80 /* ** These are the Open_File, Read_File, and Seek_File constants. */ #ifndef READ #define READ 1 // Read access. #endif #ifndef WRITE #define WRITE 2 // Write access. #endif #ifndef SEEK_SET #define SEEK_SET 0 // Seek from start of file. #define SEEK_CUR 1 // Seek relative from current location. #define SEEK_END 2 // Seek from end of file. #endif typedef enum { FILEB_PROCESSED=8,// Was the packed file header of this file processed? FILEB_PRELOAD, // Scan for and make file resident at WWDOS_Init time? FILEB_RESIDENT, // Make resident at Open_File time? FILEB_FLUSH, // Un-resident at Close_File time? FILEB_PACKED, // Is this file packed? FILEB_KEEP, // Don't ever flush this resident file? FILEB_PRIORITY, // Flush this file last? FILEB_LAST } FileFlags_Type; #define FILEF_NONE 0 #define FILEF_PROCESSED (1< #ifdef __cplusplus extern "C" { #endif extern int __cdecl Find_First(unsigned char *fname, unsigned int mode, struct find_t *ffblk); extern int __cdecl Find_Next(struct find_t *ffblk); #ifdef __cplusplus } #endif #endif