mirror of
https://github.com/risingPhil/PokeMe64.git
synced 2026-04-25 23:56:44 -05:00
Fix bugs
This commit is contained in:
parent
0ff264c13c
commit
0cf8a70e50
|
|
@ -378,7 +378,10 @@ void DataCopyScene::processUserInput()
|
|||
.shouldDeleteWhenDone = true,
|
||||
};
|
||||
setDialogDataText(*errMsg, "ERROR: Validation failed! Check Controller or Transfer Pak connection please!");
|
||||
unlink(savOutputPath_);
|
||||
if(sceneContext_->operation == DataCopyOperation::BACKUP_SAVE)
|
||||
{
|
||||
unlink(savOutputPath_);
|
||||
}
|
||||
showDialog(errMsg);
|
||||
return;
|
||||
}
|
||||
|
|
@ -398,9 +401,10 @@ void DataCopyScene::processUserInput()
|
|||
{
|
||||
isValidating_ = true;
|
||||
needsValidation_ = false;
|
||||
const char* savPath = (sceneContext_->operation == DataCopyOperation::BACKUP_SAVE) ? savOutputPath_ : sceneContext_->saveToRestorePath.get();
|
||||
|
||||
copySource_ = new TransferPakSaveManagerCopySource(saveManager_);
|
||||
copyDestination_ = new FileValidationCopyDestination(savOutputPath_);
|
||||
copyDestination_ = new FileValidationCopyDestination(savPath);
|
||||
copier_ = new TransferPakDataCopier(*copySource_, *copyDestination_);
|
||||
|
||||
deps_.tpakManager.setRAMEnabled(true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user