mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Sneak in a couple little fixes for savedata zip install
This commit is contained in:
1 parent
c2a38181ad
commit
c49f7b9207
2 files changed
+7
-1
No files matched your search
@@ -238,6 +238,10 @@ bool CanExtractWithoutOverwrite(struct zip *z, const Path &destination, int maxO
|
||||
}
|
||||
for (int i = 0; i < numFiles; i++) {
|
||||
const char *fn = zip_get_name(z, i, 0);
|
||||
if (endsWith(fn, "/")) {
|
||||
// we don't care about directory overwrites, that's fine.
|
||||
continue;
|
||||
}
|
||||
Path p = destination / fn;
|
||||
if (File::Exists(p)) {
|
||||
INFO_LOG(Log::HLE, "Extract zip check: %s exists, can't extract without overwrite", p.ToVisualString().c_str());
|
||||
|
||||
@@ -125,7 +125,9 @@ void InstallZipScreen::CreateViews() {
|
||||
|
||||
destFolders_.push_back(savedataDir);
|
||||
|
||||
leftColumn->Add(new NoticeView(NoticeLevel::WARN, di->T("Confirm Overwrite"), ""));
|
||||
if (overwrite) {
|
||||
leftColumn->Add(new NoticeView(NoticeLevel::WARN, di->T("Confirm Overwrite"), ""));
|
||||
}
|
||||
|
||||
int columnWidth = 300;
|
||||
|
||||
|
||||
Reference in new issue
Block a user