Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions src/botlib/interface/bot_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1636,28 +1636,14 @@ static char *BotVersion(void)
=============
BotSetupLibraryWrapper

Initialises the botlib bridge and emits the historical startup banners.
Initialises the botlib bridge and delegates setup to the core entry point.
=============
*/
static int BotSetupLibraryWrapper(void)
{
if (BotLibraryInitialized())
{
BotInterface_Printf(PRT_ERROR, "bot library already setup\n");
return BLERR_LIBRARYALREADYSETUP;
}

BotInterface_PrintBanner(PRT_MESSAGE, "------- BotLib Initialization -------\n");
BotInterface_PrintBanner(PRT_MESSAGE, "BotLib v0.96\n");
BotInterface_SetImportTable(&g_botlibImportTable);

int result = BotSetupLibrary();
if (result != BLERR_NOERROR)
{
return result;
}

BotInterface_PrintBanner(PRT_MESSAGE, "-------------------------------------\n");
return result;
}

Expand Down Expand Up @@ -3485,4 +3471,3 @@ GLADIATOR_API bot_export_t *GetBotAPI(bot_import_t *import)

return &exportTable;
}

Loading
Loading