Fixed bug (caching baseDir)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@662
This commit is contained in:
parent
00080a4d9d
commit
0684c1784f
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue