mirror of
https://github.com/akuker/RASCSI.git
synced 2025-02-16 19:31:09 +00:00
Updated/Removed CD-ROM size checks (#315)
This commit is contained in:
parent
f5a6f5dce2
commit
dd5cad616f
@ -466,12 +466,9 @@ void SCSICD::OpenPhysical(const Filepath& path)
|
|||||||
// Close
|
// Close
|
||||||
fio.Close();
|
fio.Close();
|
||||||
|
|
||||||
// Size must be a multiple of 2048 and less than 700MB
|
// Size must be a multiple of 512
|
||||||
if (size & 0x7ff) {
|
if (size & 0x1ff) {
|
||||||
throw io_exception("CD-ROM file size must be a multiple of 2048 bytes");
|
throw io_exception("CD-ROM file size must be a multiple of 512 bytes");
|
||||||
}
|
|
||||||
if (size > 0x2bed5000) {
|
|
||||||
throw io_exception("CD-ROM file size must not exceed 700 MB");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the number of blocks
|
// Set the number of blocks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user