Pyrogenesis  trunk
Functions
osx_bundle.h File Reference

C++ interface to Cocoa implementation for getting bundle information. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool osx_IsAppBundleValid ()
 Check if app is running in a valid bundle. More...
 
std::string osx_GetBundlePath ()
 Get the system path to the bundle itself. More...
 
std::string osx_GetBundleResourcesPath ()
 Get the system path to the bundle's Resources directory. More...
 
std::string osx_GetBundleFrameworksPath ()
 Get the system path to the bundle's Frameworks directory. More...
 

Detailed Description

C++ interface to Cocoa implementation for getting bundle information.

Function Documentation

◆ osx_GetBundleFrameworksPath()

std::string osx_GetBundleFrameworksPath ( )

Get the system path to the bundle's Frameworks directory.

Returns
string containing POSIX-style path in UTF-8 encoding, else empty string if an error occurred.

◆ osx_GetBundlePath()

std::string osx_GetBundlePath ( )

Get the system path to the bundle itself.

Returns
string containing POSIX-style path in UTF-8 encoding, else empty string if an error occurred.

◆ osx_GetBundleResourcesPath()

std::string osx_GetBundleResourcesPath ( )

Get the system path to the bundle's Resources directory.

Returns
string containing POSIX-style path in UTF-8 encoding, else empty string if an error occurred.

◆ osx_IsAppBundleValid()

bool osx_IsAppBundleValid ( )

Check if app is running in a valid bundle.

Returns
true if valid bundle reference was found matching identifier property "com.wildfiregames.0ad"