123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using XUnity.AutoTranslator.Plugin.Core.Constants;
- namespace XUnity.AutoTranslator.Plugin.Core
- {
- public static class Features
- {
- public static readonly bool SupportsClipboard = false;
- public static readonly bool SupportsCustomYieldInstruction = false;
- static Features()
- {
- try
- {
- SupportsClipboard = Types.TextEditor?.GetProperty( "text" )?.GetSetMethod() != null;
- }
- catch( Exception )
- {
-
- }
- try
- {
- SupportsCustomYieldInstruction = Types.CustomYieldInstruction != null;
- }
- catch( Exception )
- {
-
- }
- }
- }
- }
|