diff options
author | sr55 <[email protected]> | 2019-05-11 20:39:00 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2019-05-11 20:39:00 +0100 |
commit | 50f8adb4efdf43eba77d92d8ef86eacee21fe201 (patch) | |
tree | 32ca18fc8ee6383fd02741f79d219b2b55bdbe37 /win/CS/HandBrake.Interop/Interop/HbLib | |
parent | 4b8c299e283bcce467eebf59248524ed94befa5d (diff) |
WinGui: Use hb_presets_read_file_json to read the UI presets file. This allows us to better handle version upgrades without resetting everything back to 0.
Diffstat (limited to 'win/CS/HandBrake.Interop/Interop/HbLib')
-rw-r--r-- | win/CS/HandBrake.Interop/Interop/HbLib/HbFunctions.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/win/CS/HandBrake.Interop/Interop/HbLib/HbFunctions.cs b/win/CS/HandBrake.Interop/Interop/HbLib/HbFunctions.cs index 689ceb937..7fc1ed500 100644 --- a/win/CS/HandBrake.Interop/Interop/HbLib/HbFunctions.cs +++ b/win/CS/HandBrake.Interop/Interop/HbLib/HbFunctions.cs @@ -469,5 +469,8 @@ namespace HandBrake.Interop.Interop.HbLib // char * hb_presets_read_file_json(const char *filename); [DllImport("hb", EntryPoint = "hb_presets_read_file_json", CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr hb_presets_read_file_json(IntPtr filename); + + [DllImport("hb", EntryPoint = "hb_presets_current_version", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr hb_presets_current_version(IntPtr major, IntPtr minor, IntPtr micro); } } |