mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-29 16:49:55 +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
|
||||
fio.Close();
|
||||
|
||||
// Size must be a multiple of 2048 and less than 700MB
|
||||
if (size & 0x7ff) {
|
||||
throw io_exception("CD-ROM file size must be a multiple of 2048 bytes");
|
||||
}
|
||||
if (size > 0x2bed5000) {
|
||||
throw io_exception("CD-ROM file size must not exceed 700 MB");
|
||||
// Size must be a multiple of 512
|
||||
if (size & 0x1ff) {
|
||||
throw io_exception("CD-ROM file size must be a multiple of 512 bytes");
|
||||
}
|
||||
|
||||
// Set the number of blocks
|
||||
|
Loading…
Reference in New Issue
Block a user