mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
OS (SunOS): don't parse unstructured text
This commit is contained in:
@@ -12,9 +12,6 @@ void ffDetectOSImpl(FFOSResult* os)
|
||||
|
||||
// OpenIndiana Hipster 2024.04
|
||||
uint32_t idx = ffStrbufFirstIndexC(&os->prettyName, ' ');
|
||||
ffStrbufSetNS(&os->name, idx, os->prettyName.chars);
|
||||
uint32_t idx2 = ffStrbufNextIndexC(&os->prettyName, idx + 1, ' ');
|
||||
ffStrbufSetNS(&os->codename, idx2 - idx - 1, os->prettyName.chars + idx + 1);
|
||||
ffStrbufSetNS(&os->version, idx2 - idx - 1, os->prettyName.chars + idx2 + 1);
|
||||
ffStrbufSetNS(&os->id, idx, os->prettyName.chars);
|
||||
ffStrbufSetStatic(&os->idLike, "sunos");
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
static void buildOutputDefault(const FFOSResult* os, FFstrbuf* result)
|
||||
{
|
||||
// asm ("int3");
|
||||
//Create the basic output
|
||||
if(os->name.length > 0)
|
||||
ffStrbufAppend(result, &os->name);
|
||||
|
||||
Reference in New Issue
Block a user