mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix bug in deleting of directories in memory stick move. Also improve progress reporting.
This commit is contained in:
parent
bef9764700
commit
64b8ac603a
1 changed files with 3 additions and 1 deletions
|
@ -688,6 +688,7 @@ UI::EventReturn ConfirmMemstickMoveScreen::OnConfirm(UI::EventParams ¶ms) {
|
|||
INFO_LOG(SYSTEM, "dry run: Would have created dir '%s'", dir.c_str());
|
||||
} else {
|
||||
INFO_LOG(SYSTEM, "Creating dir '%s'", dir.c_str());
|
||||
progressReporter_.Set(dirSuffix);
|
||||
// Just ignore already-exists errors.
|
||||
File::CreateDir(dir);
|
||||
}
|
||||
|
@ -735,7 +736,8 @@ UI::EventReturn ConfirmMemstickMoveScreen::OnConfirm(UI::EventParams ¶ms) {
|
|||
INFO_LOG(SYSTEM, "dry run: Would have deleted dir '%s'", dir.c_str());
|
||||
} else {
|
||||
INFO_LOG(SYSTEM, "Deleting dir '%s'", dir.c_str());
|
||||
if (!File::Exists(dir)) {
|
||||
progressReporter_.Set(dirSuffix);
|
||||
if (File::Exists(dir)) {
|
||||
File::DeleteDir(dir);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue