You could I suppose use the dynamic API to check if GetFolderItem()
and App.ExecutableFile.Parent return the same folder item or not.
Well thats a bit much just to know the format of the executable. I
would think RS would put it in the plugin sdk since in rb we do have
TARGET_MACHO.
Or you could do it the simple and better way, have a Mach-O segment in
your plugin, then when in the Mach-O segment then you are always in a
Mach-O app and when in the CFM segment then you are always in CFM app.
Why you would want to know if the App is CFM or Mach-O though is
beyond me.
Because im passing function pointers from the rb app to my plugin, and
i need to convert the ptr to a correct format.
Alex
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|