gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r10404: Fix extention code


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10404: Fix extention code
Date: Tue, 09 Dec 2008 21:59:39 +0100
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10404
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Tue 2008-12-09 21:59:39 +0100
message:
  Fix extention code
modified:
  libcore/asobj/Global.cpp
=== modified file 'libcore/asobj/Global.cpp'
--- a/libcore/asobj/Global.cpp  2008-12-09 13:32:22 +0000
+++ b/libcore/asobj/Global.cpp  2008-12-09 20:59:39 +0000
@@ -214,6 +214,35 @@
 
 }
 
+#ifdef USE_EXTENSIONS
+
+//-----------------------
+// Extensions
+//-----------------------
+// Scan the plugin directories for all plugins, and load them now.
+// FIXME: this should actually be done dynamically, and only
+// if a plugin defines a class that a movie actually wants to
+// use.
+void
+Global::loadExtensions()
+{
+
+    if ( RcInitFile::getDefaultInstance().enableExtensions() )
+    {
+        log_security(_("Extensions enabled, scanning plugin dir for load"));
+        _et.scanAndLoad(*this);
+    }
+    else
+    {
+        log_security(_("Extensions disabled"));
+    }
+
+}
+
+#endif
+
+
+
 as_value
 as_global_trace(const fn_call& fn)
 {
@@ -636,7 +665,6 @@
     return as_value();
 }
 
-
 namespace {
 
 void
@@ -680,33 +708,6 @@
 
 }
 
-#ifdef USE_EXTENSIONS
-
-//-----------------------
-// Extensions
-//-----------------------
-// Scan the plugin directories for all plugins, and load them now.
-// FIXME: this should actually be done dynamically, and only
-// if a plugin defines a class that a movie actually wants to
-// use.
-void
-Global::loadExtensions()
-{
-
-    if ( RcInitFile::getDefaultInstance().enableExtensions() )
-    {
-        log_security(_("Extensions enabled, scanning plugin dir for load"));
-        _et.scanAndLoad(*this);
-    }
-    else
-    {
-        log_security(_("Extensions disabled"));
-    }
-
-}
-
-#endif
-
 } // anonymous namespace
 } // namespace gnash
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]