Commit f5e4e410 authored by Maxime Perrotin's avatar Maxime Perrotin

Fix import symbol names for opengoede simulator

parent ac6f4bb3
...@@ -34,6 +34,7 @@ LICENSE: LGPL - see LICENSE file ...@@ -34,6 +34,7 @@ LICENSE: LGPL - see LICENSE file
CHANGELOG: CHANGELOG:
1.6.3 - Fix PI import names in opengeode 2.x.x simulator
1.6.2 - Use mono prefix to call msc2py.exe 1.6.2 - Use mono prefix to call msc2py.exe
1.6.1 - Fix messages that did not appear on the GUI if received too fast 1.6.1 - Fix messages that did not appear on the GUI if received too fast
1.6.0 - Fix autoscrolling in MSC streaming scenes 1.6.0 - Fix autoscrolling in MSC streaming scenes
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
__author__ = "Maxime Perrotin" __author__ = "Maxime Perrotin"
__license__ = "LGPLv3" __license__ = "LGPLv3"
__version__ = "1.6.2" __version__ = "1.6.3"
__url__ = "http://taste.tuxfamily.org" __url__ = "http://taste.tuxfamily.org"
import sys import sys
......
...@@ -610,8 +610,8 @@ class sdlHandler(QObject): ...@@ -610,8 +610,8 @@ class sdlHandler(QObject):
''' Send a TC by calling directly the function in the dll ''' ''' Send a TC by calling directly the function in the dll '''
# Save internal state, send tc, restore state # Save internal state, send tc, restore state
getattr(self.dll, "_save_context")() getattr(self.dll, "_save_context")()
getattr(self.dll, '{}_{}'.format(self.proc.processName, getattr(self.dll, '{}_PI_{}'.format(self.proc.processName,
name))(arg_ctypes_ptr) name.lower()))(arg_ctypes_ptr)
new_hash = self.on_event() new_hash = self.on_event()
getattr(self.dll, "_restore_context")() getattr(self.dll, "_restore_context")()
return new_hash return new_hash
...@@ -970,8 +970,8 @@ class sdlHandler(QObject): ...@@ -970,8 +970,8 @@ class sdlHandler(QObject):
if col: if col:
row += 1 row += 1
col = (col + 1) % 2 col = (col + 1) % 2
tc = getattr(self.dll, '{}_{}'.format(self.proc.processName, tc = getattr(self.dll, '{}_PI_{}'.format(self.proc.processName,
name)) name.lower()))
button.pressed.connect(partial(self.send_tc, name, tc)) button.pressed.connect(partial(self.send_tc, name, tc))
def set_paramless_tm(self): def set_paramless_tm(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment