mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2026-02-06 08:33:43 +00:00
Blindage BDD
This commit is contained in:
parent
d5b731ef06
commit
5951e8195e
7 changed files with 212 additions and 137 deletions
|
|
@ -29,10 +29,17 @@ namespace AideDeJeu.Droid
|
|||
|
||||
public async Task<string> GetDatabasePathAsync(string databaseName)
|
||||
{
|
||||
if (await CheckDatabaseVersionAsync(databaseName))
|
||||
try
|
||||
{
|
||||
await CopyOldToNewFileAsync(databaseName, "db");
|
||||
await CopyOldToNewFileAsync(databaseName, "ver");
|
||||
if (await CheckDatabaseVersionAsync(databaseName))
|
||||
{
|
||||
await CopyOldToNewFileAsync(databaseName, "db");
|
||||
await CopyOldToNewFileAsync(databaseName, "ver");
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
return GetNewFilePath(databaseName, "db");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue