mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
WiiSave: Clean up constructors
Move the import/export operation into separate functions, as it doesn't really make sense for the constructor to do *everything*, including printing success/failure message boxes. The existing constructor was split into two: one that takes a path, and another taking a title ID. This makes it more obvious what is actually done when a path/TID is passed and also clarifies what parameters should be passed. (No more magic 0 or "" value.)
This commit is contained in:
@ -988,7 +988,7 @@ void GameListCtrl::OnExportSave(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
const UICommon::GameFile* iso = GetSelectedISO();
|
||||
if (iso)
|
||||
WiiSave::ExportWiiSave(iso->GetTitleID());
|
||||
WiiSave::Export(iso->GetTitleID());
|
||||
}
|
||||
|
||||
// Save this file as the default file
|
||||
|
Reference in New Issue
Block a user