[3.0] workaround to support APP_RESOURCE_PATH constants in stylesheet.
[platform/core/uifw/dali-adaptor.git] / adaptors / common / style-monitor-impl.cpp
index ca9ec8f..307a6c4 100644 (file)
@@ -19,6 +19,7 @@
 #include "style-monitor-impl.h"
 
 // EXTERNAL INCLUDES
+#include <app.h>
 #include <dali/public-api/object/type-registry.h>
 #include <fstream>
 #include <sstream>
@@ -156,6 +157,13 @@ void StyleMonitor::SetTheme(const std::string& path)
   EmitStyleChangeSignal( StyleChange::THEME_CHANGE );
 }
 
+std::string StyleMonitor::GetAppResourcePath()
+{
+  std::string resourcePath = "";
+  resourcePath = app_get_resource_path();
+  return resourcePath;
+}
+
 bool StyleMonitor::LoadThemeFile( const std::string& filename, std::string& output )
 {
   bool retval( false );