@@ -56,7 +56,6 @@ namespace RegawMOD.Android
5656 /// </example>
5757 public sealed class AndroidController
5858 {
59- #region CONSTANT VARIABLES
6059 private const string ANDROID_CONTROLLER_TMP_FOLDER = "AndroidLib\\ " ;
6160 private static readonly Dictionary < string , string > RESOURCES = new Dictionary < string , string >
6261 {
@@ -65,19 +64,13 @@ public sealed class AndroidController
6564 { "AdbWinUsbApi.dll" , "5f23f2f936bdfac90bb0a4970ad365cf" } ,
6665 { "fastboot.exe" , "35792abb2cafdf2e6844b61e993056e2" } ,
6766 } ;
68- #endregion
6967
70- #region STATIC VARIABLES
7168 private static AndroidController instance ;
72- #endregion
7369
74- #region MEMBER VARIABLES
7570 private string resourceDirectory ;
7671 private List < string > connectedDevices ;
7772 private bool Extract_Resources = false ;
78- #endregion
7973
80- #region PROPERTIES
8174 /// <summary>
8275 /// Gets the current AndroidController Instance.
8376 /// </summary>
@@ -113,18 +106,14 @@ internal string ResourceDirectory
113106 {
114107 get { return this . resourceDirectory ; }
115108 }
116- #endregion
117109
118- #region CONSTRUCTORS
119110 private AndroidController ( )
120111 {
121112 this . connectedDevices = new List < string > ( ) ;
122113 ResourceFolderManager . Register ( ANDROID_CONTROLLER_TMP_FOLDER ) ;
123114 this . resourceDirectory = ResourceFolderManager . GetRegisteredFolderPath ( ANDROID_CONTROLLER_TMP_FOLDER ) ;
124115 }
125- #endregion
126116
127- #region PRIVATE METHODS
128117 private void CreateResourceDirectories ( )
129118 {
130119 try
@@ -153,9 +142,7 @@ private void ExtractResources()
153142 Extract . Resources ( this , this . resourceDirectory , "Resources.AndroidController" , res ) ;
154143 }
155144 }
156- #endregion
157145
158- #region PUBLIC METHODS
159146 /// <summary>
160147 /// Releases all resources used by <see cref="AndroidController"/>
161148 /// </summary>
@@ -178,8 +165,8 @@ public Device GetConnectedDevice()
178165 {
179166 if ( this . HasConnectedDevices )
180167 return new Device ( this . connectedDevices [ 0 ] ) ;
181- else
182- return null ;
168+
169+ return null ;
183170 }
184171
185172 /// <summary>
@@ -194,8 +181,8 @@ public Device GetConnectedDevice(string deviceSerial)
194181
195182 if ( this . connectedDevices . Contains ( deviceSerial ) )
196183 return new Device ( deviceSerial ) ;
197- else
198- return null ;
184+
185+ return null ;
199186 }
200187
201188 /// <summary>
@@ -334,6 +321,5 @@ public void WaitForDevice()
334321
335322 this . CancelWait = false ;
336323 }
337- #endregion
338324 }
339325}
0 commit comments