fastfile.h 1.1 KB

12345678910111213141516171819202122232425262728
  1. //===========================================================================//
  2. // Copyright (C) Microsoft Corporation. All rights reserved. //
  3. //===========================================================================//
  4. //----------------------------------------------------------------------------
  5. // Global Fast File Header.
  6. //
  7. #ifndef DSTD_H
  8. #include "dstd.h"
  9. #endif
  10. #ifndef FFILE_H
  11. #include "ffile.h"
  12. #endif
  13. //-----------------------------------------------------------------------------------
  14. // MechCommander's File classes understand how to deal with the FastFile, once open.
  15. // In other words, the global class needs only to register newly opened fastfiles,
  16. // close them all on exit and provide a find function which returns a pointer to the
  17. // fastfile containing the file we care about. If no file is found, returns NULL.
  18. extern bool FastFileInit (char *fname);
  19. extern void FastFileFini (void);
  20. extern FastFile *FastFileFind (char *fname, long &fastFileHandle);
  21. extern DWORD elfHash (char *name);
  22. //-----------------------------------------------------------------------------------