namespace HellionChat.Util;

internal sealed class DalamudPlatformUtil : IPlatformUtil
{
    public DalamudPlatformUtil()
    {
        // Util.IsWine probes the host process and never changes for the
        // lifetime of a plugin instance, so we cache it once at ctor.
        // Mirrors LightlessSync/Services/DalamudUtilService:154.
        IsWine = Dalamud.Utility.Util.IsWine();
    }

    public bool IsWine { get; }

    public void OpenLink(string url) => Dalamud.Utility.Util.OpenLink(url);
}
