projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Markup procesor - Font." into devel/master
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
scripting
/
script-impl.cpp
diff --git
a/dali-toolkit/internal/scripting/script-impl.cpp
b/dali-toolkit/internal/scripting/script-impl.cpp
index
8b08f99
..
9cc0d24
100644
(file)
--- a/
dali-toolkit/internal/scripting/script-impl.cpp
+++ b/
dali-toolkit/internal/scripting/script-impl.cpp
@@
-36,25
+36,11
@@
namespace
const char* PLUGIN_FILE = "libdali-script-plugin-v8.so";
}
const char* PLUGIN_FILE = "libdali-script-plugin-v8.so";
}
-void Script::ExecuteFile( const std::string& filename )
-{
- if( mPlugin )
- {
- mPlugin->ExecuteFile(filename);
- }
-}
-
-Script::Script(void) : mPlugin(NULL)
+Script::Script()
+: mPlugin( NULL )
{
ScriptPluginProxy *plugin = new ScriptPluginProxy( PLUGIN_FILE );
{
ScriptPluginProxy *plugin = new ScriptPluginProxy( PLUGIN_FILE );
- if( mPlugin )
- {
- DALI_LOG_WARNING("Reloading script plugin %s, is this what you wanted to do?",PLUGIN_FILE);
- delete mPlugin;
- mPlugin = NULL;
- }
-
if( plugin->IsInitialized() )
{
mPlugin = plugin;
if( plugin->IsInitialized() )
{
mPlugin = plugin;
@@
-63,7
+49,15
@@
Script::Script(void) : mPlugin(NULL)
{
delete plugin;
}
{
delete plugin;
}
+}
+bool Script::ExecuteFile( const std::string& filename )
+{
+ if( mPlugin )
+ {
+ return mPlugin->ExecuteFile(filename);
+ }
+ return false;
}
Script::~Script()
}
Script::~Script()