1
0
Fork 0

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:
Peter Veenstra 2012-08-23 04:26:32 +00:00
parent 0adea40353
commit ad12df4c25

View file

@ -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