Files
ManosandDevin 9f0b725566 v7.2.4: fix single-file crash, add startup update checker
- IncludeNativeLibrariesForSelfExtract: fixes DllNotFoundException
  (SkiaSharp) in single-file publishes on .NET 10 (issue #10)
- Startup update check: compares latest GitHub release tag against the
  running version; prompt + "open download page" only when newer —
  desktop opens browser, Android uses Intent via AppPaths.UrlOpener
- Version bump to 7.2.4 across desktop/Android/payload

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-08 09:22:11 +03:00

22 lines
758 B
C#

using System;
namespace PS5SuiteAndroid;
// Platform-provided writable locations. The Android head fills these in
// during startup (external files dir needs no storage permission and is
// browsable by the user at Android/data/<pkg>/files).
public static class AppPaths
{
public static Func<string>? DownloadsDirProvider;
public static Func<string>? CacheDirProvider;
// Opens a URL in the platform browser (Android head wires an Intent).
public static Action<string>? UrlOpener;
public static string DownloadsDir =>
DownloadsDirProvider?.Invoke() ?? Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
public static string CacheDir =>
CacheDirProvider?.Invoke() ?? System.IO.Path.GetTempPath();
}