We have a Mac desktop Moai app that we are loading up inside an SFML context. The app itself is sandboxed correctly as this in our host is returning a path in ~/Library/Containers:
NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
However, when we print out MoaiEnvironment.documentDirectory, it is still returning the path ~/Documents. Looking at the Moai lib, it looks like it's setting the path with the exact same code:
environment.SetValue ( MOAI_ENV_documentDirectory, [[ NSSearchPathForDirectoriesInDomains ( NSDocumentDirectory, NSUserDomainMask, YES ) objectAtIndex:0 ] UTF8String ]);
How do we ensure the Moai binaries are set up to return the sandboxed path as well?