Gets the absolute path to the application resource directory. The resource files are delivered with the application package.
Change-Id: I7ea92e7600a2fcefad52d5de38641cbd8d2b0d71
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
void GetAppId( std::string& appId );
/**
+ * Gets path for resource storage.
+ * @param[out] path Path for resource storage
+ */
+ void GetResourceStoragePath( std::string& path );
+
+ /**
* @copydoc Dali::Adaptor::SurfaceResizePrepare
*/
void SurfaceResizePrepare( Dali::RenderSurfaceInterface* surface, SurfaceSize surfaceSize );
return appname;
}
-void Adaptor::GetDataStoragePath( std::string& path)
+void Adaptor::GetResourceStoragePath( std::string& path )
+{
+#ifdef USE_APPFW
+ char *pathInt = app_get_resource_path();
+ if ( pathInt )
+ {
+ path = pathInt;
+ free( pathInt );
+ }
+ else
+ {
+ path = "";
+ }
+#endif
+}
+
+void Adaptor::GetDataStoragePath( std::string& path )
{
#ifdef USE_APPFW
char *pathInt = app_get_data_path();