savage
2007.12.22, 07:04 PM
Hi All,
I'm porting an engine from Win32 to Mac OS X and the editor has the ability to launch the engine and pass it a level to load.
On Windows I would just launch the application and pass the level as the second parameter.
On the Mac OS X command line I seem to be able to do this by calling
open -a MyEngine.app level4.gm
Though this sometimes loads level4.gm from a totally different directory, and I'm not sure why, while other times it loads the one from the current directory, but that's a problem for another time.
How can I achieve this programmatically from within the game editor on Mac OS X using Carbon or Cocoa?
Thanks.
I'm porting an engine from Win32 to Mac OS X and the editor has the ability to launch the engine and pass it a level to load.
On Windows I would just launch the application and pass the level as the second parameter.
On the Mac OS X command line I seem to be able to do this by calling
open -a MyEngine.app level4.gm
Though this sometimes loads level4.gm from a totally different directory, and I'm not sure why, while other times it loads the one from the current directory, but that's a problem for another time.
How can I achieve this programmatically from within the game editor on Mac OS X using Carbon or Cocoa?
Thanks.