Skip to content

Commit e65e3b5

Browse files
committed
Call DSS_Start and load help strings on initialization
1 parent 87c48b9 commit e65e3b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

+DSS_MATLAB/APIUtil.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
MfilePath = fileparts(mfilename('fullpath'));
2424
DLLfilePath = fullfile(MfilePath, obj.libname);
25+
PropertiesMOfilePath = fullfile(MfilePath, 'messages', 'properties-en-US.mo');
2526
if libisloaded(obj.libname)
2627
return;
2728
end
@@ -34,6 +35,8 @@
3435
% Try loading using the thunk file, otherwise use the dynamic version
3536
loadlibrary(DLLfilePath, @DSS_MATLAB.dss_capi_no_thunk);
3637
end
38+
calllib(obj.libname, 'DSS_Start', 0);
39+
calllib(obj.libname, 'DSS_SetPropertiesMO', PropertiesMOfilePath);
3740
obj.libraryWasLoaded = 1;
3841
warning(orig_state);
3942
end

0 commit comments

Comments
 (0)