mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2025-02-20 11:43:27 +08:00
small fixes
This commit is contained in:
parent
88d2530460
commit
bd2e1da3b4
@ -41,12 +41,12 @@ static const char* getDConfValue(DConfData* data, const char* schemaName, const
|
||||
ffStrbufAppendC(&dconfStyleKey, '/');
|
||||
ffStrbufAppendTransformS(&dconfStyleKey, schemaName, transformGSettingsToDConf);
|
||||
|
||||
if(path == NULL || *path != '/')
|
||||
if(path != NULL && *path != '/')
|
||||
ffStrbufAppendC(&dconfStyleKey, '/');
|
||||
|
||||
ffStrbufAppendTransformS(&dconfStyleKey, path, transformGSettingsToDConf);
|
||||
|
||||
if(path != NULL && dconfStyleKey.chars[dconfStyleKey.length - 1] != '/')
|
||||
if(dconfStyleKey.chars[dconfStyleKey.length - 1] != '/')
|
||||
ffStrbufAppendC(&dconfStyleKey, '/');
|
||||
|
||||
ffStrbufAppendS(&dconfStyleKey, key);
|
||||
|
@ -100,7 +100,7 @@ void ffPrintCPU(FFinstance* instance)
|
||||
|
||||
const char* removeStrings[] = {
|
||||
"(R)", "(r)", "(TM)", "(tm)",
|
||||
" CPU", " FPU", " Processor",
|
||||
" CPU", " FPU", " APU", " Processor",
|
||||
" Dual-Core", " Quad-Core", " Six-Core", " Eight-Core", " Ten-Core",
|
||||
" 2-Core", " 4-Core", " 6-Core", " 8-Core", " 10-Core", " 12-Core", " 14-Core", " 16-Core"
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user