From 3a0e89c9257062dcc26f08fe6ea2c3392c2a722b Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 29 Mar 2005 01:47:06 +0000 Subject: Humf, let's optimize a bit the loading... --- cd-tool.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cd-tool.cpp b/cd-tool.cpp index 3774168..328067e 100644 --- a/cd-tool.cpp +++ b/cd-tool.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: cd-tool.cpp,v 1.39 2004-12-27 18:46:44 pixel Exp $ */ +/* $Id: cd-tool.cpp,v 1.40 2005-03-29 01:47:06 pixel Exp $ */ #define WIP @@ -559,10 +559,9 @@ virtual int startup() throw (GeneralException) { if (!compile && builtin) { Buffer built; int i; + + built.write(cd_tool_lua, cd_tool_lua_size); - for (i = 0; i < cd_tool_lua_size; i++) { - built.writeU8(cd_tool_lua[i]); - } try { L->load(&built); } -- cgit v1.2.3