openttd.c
changeset 2687 eb2443a14a74
parent 2685 00111d5ca47f
child 2689 9b010b734253
equal deleted inserted replaced
2686:a3e667057607 2687:eb2443a14a74
   406 
   406 
   407 #ifdef GPMI
   407 #ifdef GPMI
   408 	/* Set the debug proc */
   408 	/* Set the debug proc */
   409 	gpmi_debug_proc = &gpmi_debug_openttd;
   409 	gpmi_debug_proc = &gpmi_debug_openttd;
   410 
   410 
       
   411 	/* Set the script-path (GPMI doesn't support multiple paths, yet!) */
       
   412 	gpmi_path_scripts = strdup("ai/scripts");
       
   413 
   411 	/* Initialize GPMI */
   414 	/* Initialize GPMI */
   412 	gpmi_init();
   415 	gpmi_init();
   413 
   416 
   414 	/* Add our paths so we can find our own packages */
   417 	/* Add our paths so we can find our own packages */
   415 	gpmi_path_append(&gpmi_path_modules, "gpmi/modules");
   418 	gpmi_path_append(&gpmi_path_modules,  "ai/modules");
   416 	gpmi_path_append(&gpmi_path_packages, "gpmi/packages");
   419 	gpmi_path_append(&gpmi_path_packages, "ai/packages");
   417 #endif /* GPMI */
   420 #endif /* GPMI */
   418 
   421 
   419 #if defined(UNIX) && !defined(__MORPHOS__)
   422 #if defined(UNIX) && !defined(__MORPHOS__)
   420 	// We must fork here, or we'll end up without some resources we need (like sockets)
   423 	// We must fork here, or we'll end up without some resources we need (like sockets)
   421 	if (_dedicated_forks)
   424 	if (_dedicated_forks)