1
0
Fork 0

A cdrom has always 65535 clusters on a drive. Fixes regression with titus CD with mount, fixes usage with an image as well.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3819
This commit is contained in:
Peter Veenstra 2013-02-26 20:22:15 +00:00
parent 967524cd76
commit 16696af9b6
2 changed files with 2 additions and 2 deletions

View file

@ -197,7 +197,7 @@ public:
str_size="512,32,32765,16000";
mediaid=0xF8; /* Hard Disk */
} else if (type=="cdrom") {
str_size="2048,1,32765,0";
str_size="2048,1,65535,0";
mediaid=0xF8; /* Hard Disk */
} else {
WriteOut(MSG_Get("PROGAM_MOUNT_ILL_TYPE"),type.c_str());

View file

@ -327,7 +327,7 @@ bool isoDrive::GetFileAttr(char *name, Bit16u *attr) {
bool isoDrive::AllocationInfo(Bit16u *bytes_sector, Bit8u *sectors_cluster, Bit16u *total_clusters, Bit16u *free_clusters) {
*bytes_sector = 2048;
*sectors_cluster = 1; // cluster size for cdroms ?
*total_clusters = 60000;
*total_clusters = 65535;
*free_clusters = 0;
return true;
}