Game Development Community

[Mac] Where's my console.log?

by asmaloney (Andy) · 01/31/2007 (2:38 pm) · 2 comments

Download Code File

So you have finally completed your project! Of course you've been a good Mac developer and put all the dsos and assets inside the application bundle, right?

But now when you run SuperDuperGame.app, the console.log file doesn't show up...

The way TGE 1.5 is set up, it looks inside the app bundle to find all the assets and other resources first. If it does not find them there it looks at the level of the app itself. This means, however, that the console.log file will be created inside your app bundle if it finds your resources there!

This makes it more difficult for your users to send you their console.log in the event of a problem because you'll constantly have to explain how to open the app bundle to find the log file.

So this patch fixes that. Now when you run your app, it will put the log file beside the app regardless of where the resources are.

Files changed:
- console/console.h
- console/console.cc
- platformMacCarb/macCarbFileio.cc

Simply copy the included files over yours [unless you've made changes to any of them].

#1
01/31/2007 (3:25 pm)
Sweet idea. Thanks for doing that.
#2
02/02/2007 (6:37 am)
No problem Rubes! Just thought at least one of the 7 people developing for the Mac would find it helpful :-)