2006-02-03 Clinton Ebadi <clinton@unknownlamer.org>
+ * source/Interp.C (Startup): Removed loading of bobot-utils.scm
+ (Startup2): Load bobot-utils.scm here
+
+ * source/Interp.H: Added Startup2 method
+
+ * source/Bot.C (Bot): Call Interp::Startup2
+
* source/Main.C (main): Moved Interp::Startup call to after the
Bot is created
+ (main): Moved Interp::Startup back
2005-09-12 Clinton Ebadi <clinton@unknownlamer.org>
std::srand (std::time (0)); // srand for bot-random
#ifdef USESCRIPTS
+ Interp::Startup2 ();
botInterp = new BotInterp(this, logs_dir + scriptLogFileName);
botInterp->LoadScript(autoexecFileName);
#endif
bot_module = scm_c_define_module ("the-bot-module",
interp_init_helper, 0);
+}
+
+void Interp::Startup2 ()
+{
scm_c_call_with_current_module (bot_module,
interp_post_startup_helper,
bot_module);
#endif
public:
static void Startup();
+ static void Startup2 ();
static void Shutdown();
static void Execute(Bot *, String);
static void LoadScript(Bot *, String);