Kernel: improve performance, detect code name (Windows)

This commit is contained in:
李通洲
2022-10-25 17:29:52 +08:00
parent 42fec6e61f
commit f470744e44
4 changed files with 124 additions and 37 deletions
+9 -1
View File
@@ -9,7 +9,15 @@ void ffPrintKernel(FFinstance* instance)
if(instance->config.kernel.outputFormat.length == 0)
{
ffPrintLogoAndKey(instance, FF_KERNEL_MODULE_NAME, 0, &instance->config.kernel.key);
puts(instance->state.utsname.release);
#ifdef _WIN32
if(instance->state.utsname.version[0] != '\0')
printf("%s (%s)\n", instance->state.utsname.release, instance->state.utsname.version);
else
puts(instance->state.utsname.release);
#else
puts(instance->state.utsname.release);
#endif
}
else
{