Fix path detection on Haiku

This commit is contained in:
Adrien Destugues
2021-01-01 11:40:23 +01:00
parent 15ba54eb77
commit 951f58445c
4 changed files with 19 additions and 2 deletions

View File

@@ -137,6 +137,8 @@ char * Get_program_directory(const char * argv0)
}
else
program_dir = Extract_path(NULL, argv0);
#elif defined(__HAIKU__)
program_dir = Extract_path(NULL, haiku_get_app_path());
// Others: The part of argv[0] before the executable name.
// Keep the last \ or /.