Mercurial > minori
view src/sys/osx/filesystem.mm @ 9:5c0397762b53
INCOMPLETE: megacommit :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 10 Sep 2023 03:59:16 -0400 |
parents | 51ae25154b70 |
children | cde8f67a7c7d |
line wrap: on
line source
#include <Cocoa/Cocoa.h> #include <string> namespace osx { std::string GetApplicationSupportDirectory() { NSArray* strings = NSSearchPathForDirectoriesInDomains( NSApplicationSupportDirectory, NSUserDomainMask, true); return std::string([[strings objectAtIndex:0] UTF8String]); } } // namespace osx