[mac] game assets within game.app?

BlitzMax Forums/BlitzMax Programming/[mac] game assets within game.app?

GfK(Posted 2013) [#1]
I've had a request for a build of my game with all of the assets contained within game.app.

This is for MacOS. Is that what Incbin does on mac? Or is there something else I need to do? I'm in France at the moment and my mac is in the UK so I can't find out for myself right now

Ta


d-bug(Posted 2013) [#2]
On MacOS, an *.app is a simple folder containing binaries and resources. So called "bundle".
You can copy your resources into YourApp.app/Contents/Resources/, which is the default path for resources in every MacOS app, and access them by loading files from AppDir+"/YourApp.app/Contents/Resources/"+yourFileToLoad like you would do on Windows when loading from a regular folder. The binary can be found in .../YourApp.app/Contents/MacOS/ ... just to keep you on top, when you try to use AppFile which is pointing to the binary and not to YourApp.app.

Incbin does include them into the binary like it does on Windows too.


therevills(Posted 2013) [#3]
Hey Dave, who requested it?

Also do you have GAF (I can't remember if you bought it, I know you dont use it), as Jake has a function in there you might want to look at ;)


GfK(Posted 2013) [#4]
@therevills its for gamehouse.

Thanks both!


Corum(Posted 2013) [#5]
http://blitzmax.com/Community/posts.php?topic=73690