Game Development Community

OpenAL Frameworks as a Bundle of the game

by Mathieu · in Torque Game Engine · 01/11/2004 (4:06 pm) · 1 replies

I'm trying to figure out how I can add the OpenAL frameworks directly in the Torque .app (like it is with all games sold from GarageGame website) but I failed miserably... I'm pretty sure there only a few changes to make in the code in order to load the frameworks from the package and not from /System/Library/Frameworks/.
Any one could help me on this ?

#1
01/16/2004 (3:58 pm)
If you'll look in the platform code, there is a func that loads frameworks. It currently looks in a number of places. There's a list of constants that represent certain well known folders. The 1st item in the list is something like "private frameworks". Now, you'd think this would point to the .app/Contents/Frameworks dir, but it doesnt. It points to System/Library/PrivateFrameworks .

The way that piece of code looks up folders will only use the constants, and there does not seem to be a constant to represent the .app's inner Frameworks folder.

You have to write some mac code that will look 1st in the inner frameworks folder, then continue on the the existing searching code if you didnt find your framework.

I apologize, I dont have the code in front of me now, or I'd be able to tell you the function names & files.