mirror of
https://github.com/akuker/RASCSI.git
synced 2026-04-24 07:16:46 +00:00
Use lambdas for dispatcher, code cleanup, test updates (#958)
* Using lambdas instead of member function pointers simplifies the command dispatching and reduces the code volume * Removed duplicate error handling * Fix for issue #956 * Unit test updates * Resolved SonarQube issues
This commit is contained in:
@@ -49,7 +49,7 @@ void SCSIMO::Open()
|
||||
SetBlockCount(size >> GetSectorSizeShiftCount());
|
||||
}
|
||||
|
||||
super::ValidateFile();
|
||||
Disk::ValidateFile();
|
||||
|
||||
SetUpCache(0);
|
||||
|
||||
@@ -59,7 +59,7 @@ void SCSIMO::Open()
|
||||
}
|
||||
}
|
||||
|
||||
vector<byte> SCSIMO::InquiryInternal() const
|
||||
vector<uint8_t> SCSIMO::InquiryInternal() const
|
||||
{
|
||||
return HandleInquiry(device_type::OPTICAL_MEMORY, scsi_level::SCSI_2, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user