Mercurial > minori
comparison src/sys/osx/filesystem.cc @ 197:c4ca035c565d
*: misc. patches
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Fri, 08 Dec 2023 11:19:54 -0500 |
| parents | f0ff06a45c42 |
| children |
comparison
equal
deleted
inserted
replaced
| 196:f0ff06a45c42 | 197:c4ca035c565d |
|---|---|
| 17 | 17 |
| 18 namespace osx { | 18 namespace osx { |
| 19 | 19 |
| 20 bool GetApplicationSupportDirectory(std::string& result) { | 20 bool GetApplicationSupportDirectory(std::string& result) { |
| 21 // NSArray* strings = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, ON); | 21 // NSArray* strings = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, ON); |
| 22 const CFArrayRef strings = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, ON); | 22 const CFArrayRef strings = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, true); |
| 23 if (!strings) | 23 if (!strings) |
| 24 return false; | 24 return false; |
| 25 | 25 |
| 26 // NSIndex index = [strings count]; | 26 // NSIndex index = [strings count]; |
| 27 const CFIndex count = CFArrayGetCount(strings); | 27 const CFIndex count = CFArrayGetCount(strings); |
