Support loading PPH files (Amstrad CPC).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2162 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -136,7 +136,10 @@ void Set_data_directory(const char * program_dir, char * data_dir)
|
||||
// Haiku provides us with an API to find it.
|
||||
#elif defined(__HAIKU__)
|
||||
if (find_path(Set_data_directory, B_FIND_PATH_DATA_DIRECTORY, "grafx2/", data_dir, PATH_MAX) != B_OK)
|
||||
strcat(data_dir,"../data/grafx2/");
|
||||
{
|
||||
// If the program is not installed, find_path will fail. Try from local dir then.
|
||||
strcat(data_dir,"../share/grafx2/");
|
||||
}
|
||||
|
||||
// All other targets, program is in a "bin" subdirectory
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user