summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-11-22 22:32:42 +0000
committertruelight <truelight@openttd.org>2005-11-22 22:32:42 +0000
commit492723691260bd2a79c7aa28d8c487198236333b (patch)
treec108cff1d6d6c569160b15fee5831f21f05596ef /openttd.c
parentf6ddaf6a23c4218f5ab7c61a30288d78d5073484 (diff)
downloadopenttd-492723691260bd2a79c7aa28d8c487198236333b.tar.xz
(svn r3229) -Add: add more GPMI support. Now GPMI-based AIs can be loaded (doesn't change a thing if you didn't enable GPMI)
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/openttd.c b/openttd.c
index 98ab0206b..caff336bd 100644
--- a/openttd.c
+++ b/openttd.c
@@ -408,12 +408,15 @@ int ttd_main(int argc, char* argv[])
/* Set the debug proc */
gpmi_debug_proc = &gpmi_debug_openttd;
+ /* Set the script-path (GPMI doesn't support multiple paths, yet!) */
+ gpmi_path_scripts = strdup("ai/scripts");
+
/* Initialize GPMI */
gpmi_init();
/* Add our paths so we can find our own packages */
- gpmi_path_append(&gpmi_path_modules, "gpmi/modules");
- gpmi_path_append(&gpmi_path_packages, "gpmi/packages");
+ gpmi_path_append(&gpmi_path_modules, "ai/modules");
+ gpmi_path_append(&gpmi_path_packages, "ai/packages");
#endif /* GPMI */
#if defined(UNIX) && !defined(__MORPHOS__)