mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
OS (Windows): adds support for Embedded variant in OS detection
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#include "os.h"
|
||||
#include "common/library.h"
|
||||
#include "common/stringUtils.h"
|
||||
#include "common/windows/registry.h"
|
||||
#include "common/windows/unicode.h"
|
||||
@@ -56,6 +55,9 @@ void ffDetectOSImpl(FFOSResult* os) {
|
||||
if (ffStrbufStartsWithS(&os->variant, "Server ")) {
|
||||
ffStrbufAppendS(&os->name, " Server");
|
||||
ffStrbufSubstrAfter(&os->variant, strlen(" Server") - 1);
|
||||
} else if (ffStrbufStartsWithS(&os->variant, "Embedded ")) {
|
||||
ffStrbufAppendS(&os->name, " Embedded");
|
||||
ffStrbufSubstrAfter(&os->variant, strlen(" Embedded") - 1);
|
||||
}
|
||||
|
||||
if (ffStrbufStartsWithIgnCaseS(&os->variant, "(TM) ")) {
|
||||
|
||||
Reference in New Issue
Block a user