CDROMs are handled differently with no label supplied (see findfirst in drive_local.cpp). Improves College Slam. (thanks ripsaw for spotting this)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3794
This commit is contained in:
parent
0adea40353
commit
ad12df4c25
1 changed files with 2 additions and 7 deletions
|
@ -255,13 +255,8 @@ bool isoDrive::FindFirst(char *dir, DOS_DTA &dta, bool fcb_findfirst) {
|
|||
dta.GetSearchParams(attr, pattern);
|
||||
|
||||
if (attr == DOS_ATTR_VOLUME) {
|
||||
if (strlen(discLabel) != 0) {
|
||||
dta.SetResult(discLabel, 0, 0, 0, DOS_ATTR_VOLUME);
|
||||
return true;
|
||||
} else {
|
||||
DOS_SetError(DOSERR_NO_MORE_FILES);
|
||||
return false;
|
||||
}
|
||||
dta.SetResult(discLabel, 0, 0, 0, DOS_ATTR_VOLUME);
|
||||
return true;
|
||||
} else if ((attr & DOS_ATTR_VOLUME) && isRoot && !fcb_findfirst) {
|
||||
if (WildFileCmp(discLabel,pattern)) {
|
||||
// Get Volume Label (DOS_ATTR_VOLUME) and only in basedir and if it matches the searchstring
|
||||
|
|
Loading…
Add table
Reference in a new issue