summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-01-05 23:09:35 +0200
committerTor Lillqvist <tml@iki.fi>2013-01-06 16:01:04 +0200
commit35b86ad73ccaf24377faaf0e73ead06ca2425b38 (patch)
tree647a19b291005a60abb0cabe407707bea3779eea /sal
parent617e5f8ac930d82129a14fb52df925cd0ff524ae (diff)
Handle APP_DATA_DIR for iOS, too
Change-Id: I7259358c917ef9e7cc93d8f6886c9a935887183b
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/source/bootstrap.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sal/rtl/source/bootstrap.cxx b/sal/rtl/source/bootstrap.cxx
index 1f293b5d9f24..66571c627755 100644
--- a/sal/rtl/source/bootstrap.cxx
+++ b/sal/rtl/source/bootstrap.cxx
@@ -521,6 +521,14 @@ bool Bootstrap_Impl::getValue(
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(
value,