Pyrogenesis  trunk
Namespaces | Functions
osx_bundle.mm File Reference
#import <AvailabilityMacros.h>
#import <Foundation/Foundation.h>
#import <string>
#import "osx_bundle.h"
Include dependency graph for osx_bundle.mm:

Namespaces

 anonymous_namespace{osx_bundle.mm}
 

Functions

bool osx_IsAppBundleValid ()
 Check if app is running in a valid bundle. More...
 
std::string anonymous_namespace{osx_bundle.mm}::GetBundlePath (SEL selector)
 
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...
 

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"