Merge pull request #3216 from aserna3/WiiDiscWarning
[DolphinWX] Added warning to Wii disc compression
This commit is contained in:
commit
491e149545
|
@ -1080,6 +1080,9 @@ void CGameListCtrl::CompressSelection(bool _compress)
|
|||
|
||||
if (!iso->IsCompressed() && _compress)
|
||||
{
|
||||
if (iso->GetPlatform() == DiscIO::IVolume::WII_DISC && !WiiCompressWarning())
|
||||
return;
|
||||
|
||||
std::string FileName, FileExt;
|
||||
SplitPath(iso->GetFileName(), nullptr, &FileName, &FileExt);
|
||||
m_currentFilename = FileName;
|
||||
|
@ -1178,6 +1181,9 @@ void CGameListCtrl::OnCompressISO(wxCommandEvent& WXUNUSED (event))
|
|||
}
|
||||
else
|
||||
{
|
||||
if (iso->GetPlatform() == DiscIO::IVolume::WII_DISC && !WiiCompressWarning())
|
||||
return;
|
||||
|
||||
path = wxFileSelector(
|
||||
_("Save compressed GCM/ISO"),
|
||||
StrToWxStr(FilePath),
|
||||
|
@ -1292,3 +1298,10 @@ void CGameListCtrl::UnselectAll()
|
|||
SetItemState(i, 0, wxLIST_STATE_SELECTED);
|
||||
}
|
||||
}
|
||||
bool CGameListCtrl::WiiCompressWarning()
|
||||
{
|
||||
return wxMessageBox(
|
||||
_("Compressing a Wii disc image will irreversibly change the compressed copy by removing padding data. Your disc image will still work. Continue?"),
|
||||
_("Warning"),
|
||||
wxYES_NO) == wxYES;
|
||||
}
|
||||
|
|
|
@ -107,4 +107,5 @@ private:
|
|||
static size_t m_numberItem;
|
||||
static bool CompressCB(const std::string& text, float percent, void* arg);
|
||||
static bool MultiCompressCB(const std::string& text, float percent, void* arg);
|
||||
static bool WiiCompressWarning();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue