diff options
author | John Stebbins <[email protected]> | 2015-10-07 10:52:22 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2015-10-09 13:48:30 -0700 |
commit | 71ec27786fb8f2d455b5b7317b9384d6dc3b058f (patch) | |
tree | 8e4e5ebe85106f4f8eb53abbbf7a3e0a4adb2cbf /macosx/HBPresetsManager.m | |
parent | 305d591def7d9bb32f3dd3020c511970f3363960 (diff) |
presets: add result to indicate if preset import modified presets
This information is useful to the frontends in creation of preset
backups.
Diffstat (limited to 'macosx/HBPresetsManager.m')
-rw-r--r-- | macosx/HBPresetsManager.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/macosx/HBPresetsManager.m b/macosx/HBPresetsManager.m index b17294b27..a98269298 100644 --- a/macosx/HBPresetsManager.m +++ b/macosx/HBPresetsManager.m @@ -111,7 +111,10 @@ NSString *HBPresetsChangedNotification = @"HBPresetsChangedNotification"; if ([self checkIfOutOfDate:presetsDict]) { - char *updatedJson = hb_presets_import_json(cleanedJson); + char *updatedJson; + int result; + + result = hb_presets_import_json(cleanedJson, &updatedJson); presetsDict = [NSJSONSerialization HB_JSONObjectWithUTF8String:updatedJson options:0 error:NULL]; free(updatedJson); } |