Merge pull request #11572 from t895/import-heuristic

android: Adjust valid user data check
This commit is contained in:
Charles Lombardo 2023-09-22 14:53:39 -04:00 committed by GitHub
commit 33e2dce715
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -664,7 +664,8 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
checkStream.use { stream ->
var ze: ZipEntry? = null
while (stream.nextEntry?.also { ze = it } != null) {
if (ze!!.name.trim() == "/config/config.ini") {
val itemName = ze!!.name.trim()
if (itemName == "/config/config.ini" || itemName == "config/config.ini") {
isYuzuBackup = true
return@use
}