Handle APP_DATA_DIR for iOS, too

Change-Id: I7259358c917ef9e7cc93d8f6886c9a935887183b
This commit is contained in:
Tor Lillqvist 2013-01-05 23:09:35 +02:00
parent 617e5f8ac9
commit 35b86ad73c

View file

@ -520,6 +520,14 @@ bool Bootstrap_Impl::getValue(
value, rtl::OUString(app_data_dir, strlen(app_data_dir), RTL_TEXTENCODING_UTF8).pData);
return true;
}
#endif
#ifdef IOS
if (key == "APP_DATA_DIR") {
const char *app_data_dir = [[[NSBundle mainBundle] bundlePath] UTF8String];
rtl_uString_assign(
value, rtl::OUString(app_data_dir, strlen(app_data_dir), RTL_TEXTENCODING_UTF8).pData);
return true;
}
#endif
if (key == "ORIGIN") {
rtl_uString_assign(