File tree 1 file changed +12
-11
lines changed
1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -172,17 +172,18 @@ private static int DisplayHelp(ParserResult<Options> result, IEnumerable<Error>
172
172
}
173
173
174
174
private static int Run ( Options options ) {
175
-
176
- // Banner
177
- var location = Assembly . GetEntryAssembly ( ) . Location ;
178
- if ( location == "" ) // Single file executables don't have an assembly location
179
- location = Path . Join ( AppContext . BaseDirectory , "Il2CppInspector.exe" ) ;
180
-
181
- var asmInfo = FileVersionInfo . GetVersionInfo ( location ) ;
182
- Console . WriteLine ( asmInfo . ProductName ) ;
183
- Console . WriteLine ( "Version " + asmInfo . ProductVersion ) ;
184
- Console . WriteLine ( asmInfo . LegalCopyright ) ;
185
- Console . WriteLine ( "" ) ;
175
+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) ) {
176
+ // Banner
177
+ var location = Assembly . GetEntryAssembly ( ) . Location ;
178
+ if ( location == "" ) // Single file executables don't have an assembly location
179
+ location = Path . Join ( AppContext . BaseDirectory , "Il2CppInspector.exe" ) ;
180
+
181
+ var asmInfo = FileVersionInfo . GetVersionInfo ( location ) ;
182
+ Console . WriteLine ( asmInfo . ProductName ) ;
183
+ Console . WriteLine ( "Version " + asmInfo . ProductVersion ) ;
184
+ Console . WriteLine ( asmInfo . LegalCopyright ) ;
185
+ Console . WriteLine ( "" ) ;
186
+ }
186
187
187
188
// Safe plugin manager load
188
189
try {
You can’t perform that action at this time.
0 commit comments