makefsdata: Fix flags missing

Fix the Perl script from which the generated fsdata.c cause runtime assertion: "HTTP headers not included in file system".
This commit is contained in:
Jeremy HU 2020-10-13 09:57:23 +09:30 committed by Simon Goldschmidt
parent b5176936c7
commit 4a169109a7

View File

@ -90,7 +90,7 @@ for($i = 0; $i < @fvars; $i++) {
}
print(OUTPUT "const struct fsdata_file file".$fvar."[] = {{$prevfile, data$fvar, ");
print(OUTPUT "data$fvar + ". (length($file) + 1) .", ");
print(OUTPUT "sizeof(data$fvar) - ". (length($file) + 1) ."}};\n\n");
print(OUTPUT "sizeof(data$fvar) - ". (length($file) + 1) .", FS_FILE_FLAGS_HEADER_INCLUDED | FS_FILE_FLAGS_HEADER_PERSISTENT}};\n\n");
}
print(OUTPUT "#define FS_ROOT file$fvars[$i - 1]\n\n");