Skip to content

Commit

Permalink
Small debug change
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefNemec committed Nov 19, 2018
1 parent 58a7bad commit 8e898c2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions source/Playnite/Database/GameDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -775,14 +775,19 @@ public static string GetFullDbPath(string path)
}
}

public static bool GetMigrationRequired(string path)
public static bool GetMigrationRequired(string databasePath)
{
if (path.EndsWith(".db", StringComparison.OrdinalIgnoreCase))
if (string.IsNullOrEmpty(databasePath))
{
throw new ArgumentNullException(nameof(databasePath));
}

if (databasePath.EndsWith(".db", StringComparison.OrdinalIgnoreCase))
{
return true;
}

var fullPath = GetFullDbPath(path);
var fullPath = GetFullDbPath(databasePath);
var settingsPath = Path.Combine(fullPath, "database.json");
if (!File.Exists(settingsPath))
{
Expand Down

0 comments on commit 8e898c2

Please sign in to comment.