diff options
author | Joshua Hill | 2010-07-14 12:48:51 -0400 |
---|---|---|
committer | Joshua Hill | 2010-07-14 12:48:51 -0400 |
commit | fde808212e85de310cb404ac2e577da17f8382c2 (patch) | |
tree | d69d929dd1fc78b19dbe0ba71908cad89f3039b4 /src/ipsw.c | |
parent | 021a49be23280ddf9289284e8efff2f239d96d15 (diff) | |
parent | db6dc7b5310138eb6eb3eb099f22ccde65e3e765 (diff) | |
download | idevicerestore-fde808212e85de310cb404ac2e577da17f8382c2.tar.gz idevicerestore-fde808212e85de310cb404ac2e577da17f8382c2.tar.bz2 |
Merge branch 'martin'
Diffstat (limited to 'src/ipsw.c')
-rw-r--r-- | src/ipsw.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -173,10 +173,12 @@ int ipsw_extract_to_memory(const char* ipsw, const char* infile, char** pbuffer, return 0; } -int ipsw_extract_build_manifest(const char* ipsw, plist_t* buildmanifest) { +int ipsw_extract_build_manifest(const char* ipsw, plist_t* buildmanifest, int *tss_enabled) { int size = 0; char* data = NULL; + *tss_enabled = 0; + /* older devices don't require personalized firmwares and use a BuildManifesto.plist */ if (ipsw_extract_to_memory(ipsw, "BuildManifesto.plist", &data, &size) == 0) { plist_from_xml(data, size, buildmanifest); @@ -188,6 +190,7 @@ int ipsw_extract_build_manifest(const char* ipsw, plist_t* buildmanifest) { /* whereas newer devices do not require personalized firmwares and use a BuildManifest.plist */ if (ipsw_extract_to_memory(ipsw, "BuildManifest.plist", &data, &size) == 0) { + *tss_enabled = 1; plist_from_xml(data, size, buildmanifest); return 0; } |