Pyrogenesis  trunk
Macros | Functions | Variables
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:

Macros

#define STRINGIZE2(id)   # id
 
#define STRINGIZE(id)   STRINGIZE2(id)
 

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...
 

Variables

static const char * BUNDLE_ID_STR = ""
 

Macro Definition Documentation

#define STRINGIZE (   id)    STRINGIZE2(id)
#define STRINGIZE2 (   id)    # id

Function Documentation

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.
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.
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.
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"

Variable Documentation

const char* BUNDLE_ID_STR = ""
static