Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
osx_bundle.mm File Reference
#import <AvailabilityMacros.h>
#import <Foundation/Foundation.h>
#import <string>
#import "osx_bundle.h"

Go to the source code of this file.

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)

Definition at line 30 of file osx_bundle.mm.

#define STRINGIZE2 (   id)    # id

Definition at line 29 of file osx_bundle.mm.

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.

Definition at line 105 of file osx_bundle.mm.

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.

Definition at line 53 of file osx_bundle.mm.

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.

Definition at line 79 of file osx_bundle.mm.

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"

Definition at line 40 of file osx_bundle.mm.

Variable Documentation

const char* BUNDLE_ID_STR = ""
static

Definition at line 36 of file osx_bundle.mm.