From a7d1d94cbae98f8cd804f453d24bd8036e314518 Mon Sep 17 00:00:00 2001 From: whiteshark0 Date: Fri, 17 Apr 2009 16:45:41 +0000 Subject: lua plugin interface implemented it offers some basic environment to the loaded plugins see ./game/plugins/PluginDescription.odt for further explantation. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1674 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Lua/src/base/UMain.pas | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Lua/src/base/UMain.pas') diff --git a/Lua/src/base/UMain.pas b/Lua/src/base/UMain.pas index 2da1ca39..d0a9afee 100644 --- a/Lua/src/base/UMain.pas +++ b/Lua/src/base/UMain.pas @@ -183,6 +183,8 @@ uses UGraphicClasses, UPluginDefs, UPlatform, + ULuaCore, + UHookableEvent, ULuaGl, ULuaLog, ULuaTexture, @@ -417,8 +419,13 @@ begin chr(0)) ); } - Log.LogStatus('Running Core', 'Initialization'); - //Core.Run; + LuaCore := TLuaCore.Create; + + + LuaCore.BrowseDir(PluginPath); + LuaCore.DumpPlugins; + + //------------------------------ //Start- Mainloop -- cgit v1.2.3