File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ void InitWatcher ()
123
123
ok = DefaultWatcher . GetInstance ( out watcher ) ;
124
124
//ok = WindowsWatcher.GetInstance (out watcher);
125
125
break ;
126
+ #if ! UNITY_AOT
126
127
case 2 : // libfam
127
128
ok = FAMWatcher . GetInstance ( out watcher , false ) ;
128
129
break ;
@@ -135,6 +136,7 @@ void InitWatcher ()
135
136
case 5 : // inotify
136
137
ok = InotifyWatcher . GetInstance ( out watcher , true ) ;
137
138
break ;
139
+ #endif
138
140
}
139
141
140
142
if ( mode == 0 || ! ok ) {
@@ -173,8 +175,10 @@ internal string MangledFilter {
173
175
return mangledFilter ;
174
176
175
177
string filterLocal = "*.*" ;
178
+ #if ! UNITY_AOT
176
179
if ( ! ( watcher . GetType ( ) == typeof ( WindowsWatcher ) ) )
177
180
filterLocal = "*" ;
181
+ #endif
178
182
179
183
return filterLocal ;
180
184
}
@@ -183,9 +187,11 @@ internal string MangledFilter {
183
187
internal SearchPattern2 Pattern {
184
188
get {
185
189
if ( pattern == null ) {
190
+ #if ! UNITY_AOT
186
191
if ( watcher . GetType ( ) == typeof ( KeventWatcher ) )
187
192
pattern = new SearchPattern2 ( MangledFilter , true ) ; //assume we want to ignore case (OS X)
188
193
else
194
+ #endif
189
195
pattern = new SearchPattern2 ( MangledFilter ) ;
190
196
}
191
197
return pattern ;
Original file line number Diff line number Diff line change
1
+ System.IO/FileSystemWatcher_mobile.cs
Original file line number Diff line number Diff line change 4
4
../System.Web/System.Web.Util/HttpEncoder.cs
5
5
System.CodeDom/CodeCompileUnit.cs
6
6
System.CodeDom/CodeTypeDeclaration.cs
7
+
8
+ System.IO/DefaultWatcher.cs
9
+ System.IO/FileAction.cs
10
+ System.IO/FileSystemWatcher.cs
11
+ System.IO/IFileWatcher.cs
12
+ System.IO/NullFileWatcher.cs
13
+ System.IO/SearchPattern.cs
You can’t perform that action at this time.
0 commit comments