public static bool IsSupportedPlatform(Platforms platforms)
        {
            if (platforms.HasFlag(Platforms.Windows) && RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ||
                platforms.HasFlag(Platforms.MacOS) && RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ||
                platforms.HasFlag(Platforms.Linux) && RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
            {
                return(true);
            }

            return(false);
        }
Esempio n. 2
0
        public virtual void Init()
        {
            Builder.RegisterModule <PortableModule>();

            if (_platforms.HasFlag(Platforms.FTDI_USB))
            {
                Builder.RegisterModule <FTDI_Module>();
            }

            Container = Builder.Build();
        }
Esempio n. 3
0
 public static bool IsStandalone()
 {
     return(CurPlatform.HasFlag(Platforms.Editor) ||
            CurPlatform.HasFlag(Platforms.StandaloneWin) ||
            CurPlatform.HasFlag(Platforms.Standalone));
 }