mirror of
https://github.com/manos555555/PS5-Suite.git
synced 2026-10-17 17:01:08 +02:00
- 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>
22 lines
758 B
C#
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();
|
|
}
|