mirror of
https://github.com/tgeorgiadis/quiver-launcher.git
synced 2026-12-06 03:38:02 -05:00
- Introduce Android app - Migrate project files to .NET 10, updating dependencies and workflows. - Migrate project to Avalonia 12 - Refactor App.axaml to include a ResourceDictionary for theme management. - Introduce new styles for gamepad navigation and focus rings. - Implement hosted main view management for better application lifecycle handling. - Remove deprecated MainWindow.Mods.cs file and related code. - Update README to reflect changes in project structure and requirements. Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
766 B
C#
27 lines
766 B
C#
namespace QuiverLauncher.Services;
|
|
|
|
/// <summary>
|
|
/// Runtime feature switches for desktop vs Android.
|
|
/// </summary>
|
|
public static class PlatformCapabilities
|
|
{
|
|
public static bool IsMobile => OperatingSystem.IsAndroid();
|
|
|
|
public static bool IsDesktop => !IsMobile;
|
|
|
|
public static bool SupportsTray => !IsMobile;
|
|
|
|
public static bool SupportsVelopack => !IsMobile;
|
|
|
|
public static bool SupportsFolderInstall => !IsMobile;
|
|
|
|
public static bool SupportsWine => OperatingSystem.IsLinux() && !IsMobile;
|
|
|
|
public static bool SupportsSteamShortcuts =>
|
|
!IsMobile && (OperatingSystem.IsWindows() || OperatingSystem.IsLinux());
|
|
|
|
public static bool SupportsModsFolder => !IsMobile;
|
|
|
|
public static bool SupportsGamepadSdl => !IsMobile;
|
|
}
|