mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 08:17:40 +00:00
set gimp_data_dir
This commit is contained in:
parent
11219a3742
commit
d5c6f4f01c
|
@ -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!
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue