mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 01:58:52 -05:00
Add IOException type write protection check
per recent forum thread
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user