1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-04-06 10:38:16 +00:00

Correct return type and map insertion.

This commit is contained in:
Thomas Harte 2021-06-06 21:44:37 -04:00
parent 4a2673d757
commit 43f686c22d

View File

@ -253,7 +253,7 @@ void MainWindow::launchMachine() {
const QStringList appDataLocations = QStandardPaths::standardLocations(QStandardPaths::AppDataLocation);
ROMMachine::ROMFetcher rom_fetcher = [&appDataLocations, this]
(const ROM::Request &roms) -> std::vector<std::unique_ptr<std::vector<uint8_t>>> {
(const ROM::Request &roms) -> ROM::Map {
ROM::Map results;
for(const auto &description: roms.all_descriptions()) {
@ -270,7 +270,7 @@ void MainWindow::launchMachine() {
if(file) {
auto data = fileContentsAndClose(file);
if(data) {
results[description.name] = std::move(data);
results[description.name] = *data;
continue;
}
}