mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 04:24:36 -05:00
Add IOException type write protection check
per recent forum thread
This commit is contained in:
parent
5a96169cc2
commit
6d9cbaaec0
|
|
@ -3424,7 +3424,7 @@ private void clickExportSAV(object sender, EventArgs e)
|
|||
}
|
||||
catch (Exception x)
|
||||
{
|
||||
if (x is UnauthorizedAccessException || x is FileNotFoundException)
|
||||
if (x is UnauthorizedAccessException || x is FileNotFoundException || x is IOException)
|
||||
WinFormsUtil.Error("Unable to save." + Environment.NewLine + x.Message,
|
||||
"If destination is a removable disk (SD card), please ensure the write protection switch is not set.");
|
||||
else throw;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user