Handle APP_DATA_DIR for iOS, too
Change-Id: I7259358c917ef9e7cc93d8f6886c9a935887183b
This commit is contained in:
parent
617e5f8ac9
commit
35b86ad73c
1 changed files with 8 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue