mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
Bootmgr (macOS): add support
This commit is contained in:
@@ -22,8 +22,11 @@ void ffPrintBootmgr(FFBootmgrOptions* options)
|
||||
}
|
||||
|
||||
FF_STRBUF_AUTO_DESTROY firmwareName = ffStrbufCreateCopy(&bootmgr.firmware);
|
||||
ffStrbufSubstrBeforeLastC(&firmwareName, '.');
|
||||
#ifndef __APPLE__
|
||||
ffStrbufSubstrAfterLastC(&firmwareName, '\\');
|
||||
#else
|
||||
ffStrbufSubstrAfterLastC(&firmwareName, '/');
|
||||
#endif
|
||||
|
||||
if(options->moduleArgs.outputFormat.length == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user