diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-30 23:38:24 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-12-01 01:46:27 -0800 |
commit | ffbb3bd57668b3733a13f00d43760d8b9abfd887 (patch) | |
tree | 025e6dd327a0488954635aa0bc0e8b929aa73004 /MobileCydia.mm | |
parent | a171abd4ff69aa3d897f4d70e6971606ad36d7c4 (diff) |
Add File::mappings_ to Cytore for munmap() and msync().
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 069a04a..5a09168 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -8062,21 +8062,24 @@ static _finline void _setHomePage(Cydia *self) { } - (void) _saveConfig { + _trace(); + MetaFile_.Sync(); + _trace(); + if (Changed_) { - _trace(); NSString *error(nil); + if (NSData *data = [NSPropertyListSerialization dataFromPropertyList:Metadata_ format:NSPropertyListBinaryFormat_v1_0 errorDescription:&error]) { _trace(); NSError *error(nil); if (![data writeToFile:@"/var/lib/cydia/metadata.plist" options:NSAtomicWrite error:&error]) NSLog(@"failure to save metadata data: %@", error); _trace(); + + Changed_ = false; } else { NSLog(@"failure to serialize metadata: %@", error); - return; } - - Changed_ = false; } } |