Common/FatFsUtil: Add callback for cancelling SD card conversion.

This commit is contained in:
Admiral H. Curtiss 2023-02-26 20:18:37 +01:00
commit 435d8c39ee
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
5 changed files with 34 additions and 18 deletions

View file

@ -228,7 +228,7 @@ void WiiPane::CreateSDCard()
QMessageBox::Yes | QMessageBox::No);
if (result == QMessageBox::Yes)
{
if (!Common::SyncSDFolderToSDImage(false))
if (!Common::SyncSDFolderToSDImage([]() { return false; }, false))
ModalMessageBox::warning(this, tr("Convert Folder to File Now"), tr("Conversion failed."));
}
});
@ -242,7 +242,7 @@ void WiiPane::CreateSDCard()
QMessageBox::Yes | QMessageBox::No);
if (result == QMessageBox::Yes)
{
if (!Common::SyncSDImageToSDFolder())
if (!Common::SyncSDImageToSDFolder([]() { return false; }))
ModalMessageBox::warning(this, tr("Convert File to Folder Now"), tr("Conversion failed."));
}
});