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:
parent
967524cd76
commit
16696af9b6
2 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue