mirror of
https://github.com/TomHarte/CLK.git
synced 2025-03-12 11:32:30 +00:00
Use updated interface.
This commit is contained in:
parent
07493a6b18
commit
1449330ed3
@ -795,9 +795,7 @@ void MainWindow::dropEvent(QDropEvent* event) {
|
|||||||
const auto contents = fileContentsAndClose(file);
|
const auto contents = fileContentsAndClose(file);
|
||||||
if(!contents) continue;
|
if(!contents) continue;
|
||||||
|
|
||||||
|
const uint32_t crc = CRC::CRC32::crc_of(*contents);
|
||||||
CRC::CRC32 generator;
|
|
||||||
const uint32_t crc = generator.compute_crc(*contents);
|
|
||||||
|
|
||||||
std::optional<ROM::Description> target_rom = ROM::Description::from_crc(crc);
|
std::optional<ROM::Description> target_rom = ROM::Description::from_crc(crc);
|
||||||
if(target_rom) {
|
if(target_rom) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user