Print banner only on windows
TLDR: GetVersionInfo works only with PE Header Reference: https://stackoverflow.com/questions/63773485/c-sharp-fileversioninfo-getversioninfo-not-working-on-mac-os
This commit is contained in:
@@ -172,7 +172,7 @@ namespace Il2CppInspector.CLI
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static int Run(Options options) {
|
private static int Run(Options options) {
|
||||||
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) {
|
||||||
// Banner
|
// Banner
|
||||||
var location = Assembly.GetEntryAssembly().Location;
|
var location = Assembly.GetEntryAssembly().Location;
|
||||||
if (location == "") // Single file executables don't have an assembly location
|
if (location == "") // Single file executables don't have an assembly location
|
||||||
@@ -183,6 +183,7 @@ namespace Il2CppInspector.CLI
|
|||||||
Console.WriteLine("Version " + asmInfo.ProductVersion);
|
Console.WriteLine("Version " + asmInfo.ProductVersion);
|
||||||
Console.WriteLine(asmInfo.LegalCopyright);
|
Console.WriteLine(asmInfo.LegalCopyright);
|
||||||
Console.WriteLine("");
|
Console.WriteLine("");
|
||||||
|
}
|
||||||
|
|
||||||
// Safe plugin manager load
|
// Safe plugin manager load
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user