set gimp_data_dir

This commit is contained in:
Asbjørn Pettersen 1999-04-24 14:54:47 +00:00
parent 11219a3742
commit d5c6f4f01c
3 changed files with 18 additions and 0 deletions

View file

@ -1,5 +1,7 @@
Sat Apr 24 11:30:34 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
* libgimp/gimpenv.c (gimp_data_directory): Set gimp_data_dir (OS/2).
* libgimp/gimp.c (set_gimp_PLUG_IN_INFO): Set the PLUG_IN_INFO
structure in a normal way (at run-time).
The UNIX PLUG_IN_INFO is set at linking time!

View file

@ -29,6 +29,10 @@
#include <windows.h> /* For GetModuleFileName */
#endif
#ifdef __EMX__
extern const char *__XOS2RedirRoot(const char *);
#endif
char *
gimp_directory ()
{
@ -115,7 +119,11 @@ gimp_data_directory ()
else
{
#ifndef NATIVE_WIN32
#ifndef __EMX__
gimp_data_dir = DATADIR;
#else
gimp_data_dir = g_strdup(__XOS2RedirRoot(DATADIR));
#endif
#else
/* Figure it out from the executable name */
char filename[MAX_PATH];

View file

@ -29,6 +29,10 @@
#include <windows.h> /* For GetModuleFileName */
#endif
#ifdef __EMX__
extern const char *__XOS2RedirRoot(const char *);
#endif
char *
gimp_directory ()
{
@ -115,7 +119,11 @@ gimp_data_directory ()
else
{
#ifndef NATIVE_WIN32
#ifndef __EMX__
gimp_data_dir = DATADIR;
#else
gimp_data_dir = g_strdup(__XOS2RedirRoot(DATADIR));
#endif
#else
/* Figure it out from the executable name */
char filename[MAX_PATH];