Redid the most of the file loading/saving. Now uses $HOME/.avp/ and
$AVP_DIR to look for files.
This commit is contained in:
parent
95b8b49b76
commit
080430b3bd
40 changed files with 1400 additions and 1579 deletions
|
@ -109,12 +109,13 @@ static inline bool IsFileInFastFile(char const * pszFileName)
|
|||
|
||||
static bool DoesFileExist(char const * pszFileName)
|
||||
{
|
||||
DWORD dwFileAttributes = GetFileAttributes(pszFileName);
|
||||
|
||||
if (0xffffffff == dwFileAttributes || dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||
unsigned int attr = GetGameFileAttributes(pszFileName, FILETYPE_PERM);
|
||||
|
||||
if ((attr & FILEATTR_DIRECTORY) != 0)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
if ((attr & FILEATTR_READABLE) == 0)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
static char * GetPath(char * pszFileNameBuf, unsigned nBufSize, ImageDescriptor const & idsc, Chunk_With_Children * pEnvDataChunk, bool bGloballyPalettized)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue