[net] Check for application update (part 2)

* factorized token parser and added update file parsing
This commit is contained in:
Pete Batard 2012-11-12 01:53:34 +00:00
parent bc01064678
commit b3ed23647f
7 changed files with 202 additions and 61 deletions

View file

@ -480,7 +480,7 @@ out:
safe_sprintf(path, sizeof(path), "/%s/txtsetup.sif",
basedir[((iso_report.winpe&WINPE_I386) == WINPE_I386)?0:1]);
ExtractISOFile(src_iso, path, tmp_sif);
tmp = get_token_data(tmp_sif, "OsLoadOptions");
tmp = get_token_data_file("OsLoadOptions", tmp_sif);
if (tmp != NULL) {
for (i=0; i<strlen(tmp); i++)
tmp[i] = (char)tolower(tmp[i]);