1
0
Fork 0

Fixed bug (caching baseDir)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@662
This commit is contained in:
Ulf Wohlers 2003-02-10 12:38:44 +00:00
parent 00080a4d9d
commit 0684c1784f

View file

@ -327,6 +327,18 @@ DOS_Drive_Cache::CFileInfo* DOS_Drive_Cache::FindDirInfo(const char* path, char*
// LOG_DEBUG("DIR: Find %s",path);
// hehe, baseDir should be cached in...
if (!IsCachedIn(curDir)) {
strcpy(work,basePath);
if (OpenDir(curDir,work)) {
char buffer[CROSS_LEN];
struct dirent* result;
strcpy(buffer,dirPath);
ReadDir(result);
strcpy(dirPath,buffer);
};
};
// Remove base dir path
start += strlen(basePath);
strcpy(expandedPath,basePath);