1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-29 22:45:44 +00:00

database.db => library.db

This commit is contained in:
Yan Maniez 2018-10-21 17:44:47 +02:00
parent 851ad3e4af
commit 2230ddea79
12 changed files with 28 additions and 24 deletions

View file

@ -2,6 +2,7 @@
using System;
using System.IO;
using Foundation;
using System.Threading.Tasks;
[assembly: Xamarin.Forms.Dependency(typeof(AideDeJeu.Droid.Version_Android))]
namespace AideDeJeu.Droid
@ -22,9 +23,9 @@ namespace AideDeJeu.Droid
return res ? build : 0;
}
public string GetDatabasePath(string databaseName)
public async Task<string> GetDatabasePathAsync(string databaseName)
{
return NSBundle.MainBundle.PathForResource("database", "db");
return NSBundle.MainBundle.PathForResource("library", "db");
//var databasePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "..", "Library", databaseName);
//return databasePath;
}