GameDatabase.java: Fix file exists check on SAF (#6374)
Doesn't really do much other than reduce log spam
This commit is contained in:
parent
d9d0fc63ec
commit
9ef42040af
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user