[Scummvm-git-logs] scummvm master -> 3a14ac539f17fc72cc79ed662e1079a912785347

lephilousophe noreply at scummvm.org
Sat May 17 09:50:16 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
3a14ac539f ANDROID: Don't fail if the folder already exists when restoring backup


Commit: 3a14ac539f17fc72cc79ed662e1079a912785347
    https://github.com/scummvm/scummvm/commit/3a14ac539f17fc72cc79ed662e1079a912785347
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-05-17T11:48:12+02:00

Commit Message:
ANDROID: Don't fail if the folder already exists when restoring backup

Changed paths:
    backends/platform/android/org/scummvm/scummvm/BackupManager.java


diff --git a/backends/platform/android/org/scummvm/scummvm/BackupManager.java b/backends/platform/android/org/scummvm/scummvm/BackupManager.java
index 4c9d8a978bf..170d2755e67 100644
--- a/backends/platform/android/org/scummvm/scummvm/BackupManager.java
+++ b/backends/platform/android/org/scummvm/scummvm/BackupManager.java
@@ -443,7 +443,7 @@ public class BackupManager {
 		// This version check is only to make Android Studio linter happy
 		if (pr == null || Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
 			// This is a standard filesystem path
-			if (!folder.mkdirs()) {
+			if (!folder.isDirectory() && !folder.mkdirs()) {
 				return false;
 			}
 




More information about the Scummvm-git-logs mailing list