Mercurial > minori
view src/sys/osx/filesystem.mm @ 189:649786bae914
*: etc. code cleanup
I've removed most macros and stuff
dep/animia: [UNTESTED] use raw C++ instead of Objective-C++
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 06 Dec 2023 19:42:33 -0500 |
parents | 9c4645100fec |
children |
line wrap: on
line source
#include "sys/osx/filesystem.h" #include <string> #import <Foundation/Foundation.h> namespace osx { std::string GetApplicationSupportDirectory() { NSArray* strings = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, true); if (!strings || [strings count] < 1) return ""; // ack return [[strings objectAtIndex:0] UTF8String]; } } // namespace osx