Get CMachineInterface* from CMachine* ?

Post Reply
User avatar
IXix
Posts: 1113
Joined: Wed Nov 23, 2011 3:24 pm

Get CMachineInterface* from CMachine* ?

Post 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.
User avatar
IXix
Posts: 1113
Joined: Wed Nov 23, 2011 3:24 pm

Re: Get CMachineInterface* from CMachine* ?

Post by IXix »

Actually, scratch that. Calling mi::Init() any time other than load would probably be crash city. Need to rethink. :(
Post Reply