|
|
|
@ -12,7 +12,9 @@ namespace Qwirkle
|
|
|
|
|
{
|
|
|
|
|
public App()
|
|
|
|
|
{
|
|
|
|
|
Directory.SetCurrentDirectory(Path.Combine(Directory.GetCurrentDirectory(), "..\\..\\..\\Files"));
|
|
|
|
|
string appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
|
|
|
|
|
string targetPath = Path.Combine(appDataPath, "Programs", "Files");
|
|
|
|
|
Directory.SetCurrentDirectory(targetPath);
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
MainPage = new AppShell();
|
|
|
|
@ -24,6 +26,7 @@ namespace Qwirkle
|
|
|
|
|
Routing.RegisterRoute(nameof(Qwirkle.Pages.Leaderboard), typeof(Qwirkle.Pages.Leaderboard));
|
|
|
|
|
|
|
|
|
|
ILeaderboardPersistence leaderboardLoad = new LeaderboardPersistenceJson();
|
|
|
|
|
|
|
|
|
|
Ld = leaderboardLoad.LoadLeaderboard();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|