Page 1 of 1

Get CMachineInterface* from CMachine* ?

Posted: Thu Mar 19, 2015 1:08 pm
by IXix
Hi,

I'd like to be able to store/restore a target machine's full state (using c++) the same as happens when you save/load a song or template, so I need to call mi::Save/Load() directly. Can I get a CMachineInterface* for a specific machine? I can't see a way.

If not, a method to get a pointer or functions to get/set a machine state would be much appreciated.

Re: Get CMachineInterface* from CMachine* ?

Posted: Fri Mar 20, 2015 11:14 am
by IXix
Actually, scratch that. Calling mi::Init() any time other than load would probably be crash city. Need to rethink. :(