#include "engine.h"
+#include "config.h"
#include <glib.h>
#include <gmodule.h>
return TRUE;
}
-void engine_startup(char *engine)
+void engine_startup()
{
+ ConfigValue engine;
+
module = NULL;
- if (engine != NULL) {
- if (load(engine))
+ if (config_get("engine", Config_String, &engine)) {
+ if (load(engine.string))
return;
- g_warning("Failed to load the engine '%s'", engine);
+ g_warning("Failed to load the engine '%s'", engine.string);
g_message("Falling back to the default: '%s'", DEFAULT_ENGINE);
}
if (!load(DEFAULT_ENGINE)) {