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:
Adrien Destugues
2016-07-19 20:28:43 +00:00
parent 0c7d17304a
commit 702f1835da
4 changed files with 480 additions and 109 deletions

View File

@@ -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