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); }
public virtual void Init() { Builder.RegisterModule <PortableModule>(); if (_platforms.HasFlag(Platforms.FTDI_USB)) { Builder.RegisterModule <FTDI_Module>(); } Container = Builder.Build(); }
public static bool IsStandalone() { return(CurPlatform.HasFlag(Platforms.Editor) || CurPlatform.HasFlag(Platforms.StandaloneWin) || CurPlatform.HasFlag(Platforms.Standalone)); }