blob: a4a3d13c88e998f928edab9cb763a76dca751f08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#import <Foundation/Foundation.h>
#include <mbgl/platform/platform.hpp>
namespace mbgl {
namespace platform {
// Returns the path to the root folder of the application.
const std::string &assetRoot() {
static const std::string root = []() -> std::string {
return [[[[NSBundle mainBundle] resourceURL] path] UTF8String];
}();
return root;
}
}
}
|