GenConfig: honors -s set by users

This commit is contained in:
Carter Li
2026-08-04 23:34:15 +08:00
parent a88ef86ce3
commit e7642ea3a2
3 changed files with 13 additions and 24 deletions
-5
View File
@@ -244,11 +244,6 @@ void ffPrintCommandOption(FFdata* data) {
}
void ffMigrateCommandOptionToJsonc(FFdata* data) {
// If we don't have a custom structure, use the default one
if (data->structure.length == 0) {
ffStrbufAppendS(&data->structure, FASTFETCH_DATATEXT_STRUCTURE); // Cannot use `ffStrbufSetStatic` here because we will modify the string
}
char* moduleType = nullptr;
size_t moduleLen = 0;
while (ffStrbufGetdelim(&moduleType, &moduleLen, ':', &data->structure)) {