mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +00: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:
parent
fbf36b85d2
commit
41c4486c65
6 changed files with 59 additions and 54 deletions
|
@ -897,12 +897,12 @@ void MenuBar::ImportWiiSave()
|
|||
"All Files (*)"));
|
||||
|
||||
if (!file.isEmpty())
|
||||
WiiSave::ImportWiiSave(file.toStdString());
|
||||
WiiSave::Import(file.toStdString());
|
||||
}
|
||||
|
||||
void MenuBar::ExportWiiSaves()
|
||||
{
|
||||
WiiSave::ExportAllSaves();
|
||||
WiiSave::ExportAll();
|
||||
}
|
||||
|
||||
void MenuBar::CheckNAND()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue