2006-04-17 09:04:09 -04:00
|
|
|
#ifndef APE_GLOBALFUNCTIONS_H
|
|
|
|
#define APE_GLOBALFUNCTIONS_H
|
|
|
|
|
|
|
|
/*************************************************************************************
|
|
|
|
Definitions
|
|
|
|
*************************************************************************************/
|
|
|
|
class CIO;
|
|
|
|
|
2006-05-12 14:01:53 -04:00
|
|
|
int IsAltiVecAvailable( void );
|
|
|
|
|
2006-04-17 09:04:09 -04:00
|
|
|
/*************************************************************************************
|
|
|
|
Read / Write from an IO source and return failure if the number of bytes specified
|
|
|
|
isn't read or written
|
|
|
|
*************************************************************************************/
|
|
|
|
int ReadSafe(CIO * pIO, void * pBuffer, int nBytes);
|
|
|
|
int WriteSafe(CIO * pIO, void * pBuffer, int nBytes);
|
|
|
|
|
|
|
|
/*************************************************************************************
|
|
|
|
Checks for the existence of a file
|
|
|
|
*************************************************************************************/
|
|
|
|
BOOL FileExists(wchar_t * pFilename);
|
|
|
|
|
|
|
|
#endif // #ifndef APE_GLOBALFUNCTIONS_H
|