GameDatabase.java: Fix file exists check on SAF (#6374)

Doesn't really do much other than reduce log spam
This commit is contained in:
SachinVin 2023-03-26 23:54:44 +05:30 committed by GitHub
parent d9d0fc63ec
commit 9ef42040af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,9 +125,8 @@ public final class GameDatabase extends SQLiteOpenHelper {
while (fileCursor.moveToNext()) {
String gamePath = fileCursor.getString(GAME_COLUMN_PATH);
File game = new File(gamePath);
if (!game.exists()) {
if (!FileUtil.Exists(mContext, gamePath)) {
Log.error("[GameDatabase] Game file no longer exists. Removing from the library: " +
gamePath);
database.delete(TABLE_NAME_GAMES,