Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
osx_paths.mm File Reference
#import <AvailabilityMacros.h>
#import <Foundation/Foundation.h>
#import <string>
#import "osx_paths.h"
Include dependency graph for osx_paths.mm:

Functions

static std::string getUserDirectoryPath (NSSearchPathDirectory directory)
 
std::string osx_GetAppSupportPath ()
 Get the user's Application Support path (typically ~/Library/Application Support) More...
 
std::string osx_GetCachesPath ()
 Get the user's Caches path (typically ~/Library/Caches) More...
 

Function Documentation

◆ getUserDirectoryPath()

static std::string getUserDirectoryPath ( NSSearchPathDirectory  directory)
static

◆ osx_GetAppSupportPath()

std::string osx_GetAppSupportPath ( )

Get the user's Application Support path (typically ~/Library/Application Support)

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

◆ osx_GetCachesPath()

std::string osx_GetCachesPath ( )

Get the user's Caches path (typically ~/Library/Caches)

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