Commit 43f4d84a authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Complete the global state restoring function

When working with a dll, the API offers the possibility to return to a
previously stored global system state, enabling (infinite) undo
capability - yet to be implemented.
parent b449c81c
...@@ -188,8 +188,11 @@ class sdlHandler(QObject): ...@@ -188,8 +188,11 @@ class sdlHandler(QObject):
ctypes.POINTER(ctypes.c_uint32)) ctypes.POINTER(ctypes.c_uint32))
setter_ptr(value_ptr) setter_ptr(value_ptr)
state_value = target_state[idx+1] state_value = target_state[idx+1]
setter_state = getattr(self.dll, "_set_state") print 'setting state back to', state_value
set_state = getattr(self.dll, "_set_state")
# todo string to cyptes, and call setter_state # todo string to cyptes, and call setter_state
self.on_event() self.on_event()
def on_event(self, tc_name=None, param=None): def on_event(self, tc_name=None, param=None):
Supports Markdown
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