float GetIOSVersion(void);
int GetDarwinFrameworkPath(bool forPython, char* path, uint32_t *pathsize);
int GetDarwinExecutablePath(char* path, uint32_t *pathsize);
- const std::string& DarwinGetXbmcRootFolder(void);
+ const char *DarwinGetXbmcRootFolder(void);
bool DarwinIsIosSandboxed(void);
bool DarwinHasVideoToolboxDecoder(void);
int DarwinBatteryLevel(void);
return 0;
}
-const std::string& DarwinGetXbmcRootFolder(void)
+const char* DarwinGetXbmcRootFolder(void)
{
static std::string rootFolder = "";
if ( rootFolder.length() == 0)
rootFolder = "Library/Preferences";
}
}
- return rootFolder;
+ return rootFolder.c_str();
}
bool DarwinIsIosSandboxed(void)
#if defined(TARGET_DARWIN_OSX)
logDir += "/Library/Logs/";
#else // ios/atv2
- logDir += "/" + DarwinGetXbmcRootFolder() + "/";
+ logDir += "/" + CStdString(DarwinGetXbmcRootFolder()) + "/";
#endif
m_logFolder = logDir;
#else