mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Add QNX-specific codepath for fill_pathname_application_path
This commit is contained in:
parent
8672b88eff
commit
39ba27848f
@ -24,6 +24,10 @@
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#endif
|
||||
|
||||
#ifdef __QNX__
|
||||
#include <libgen.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <boolean.h>
|
||||
#include <string.h>
|
||||
@ -242,6 +246,15 @@ void fill_pathname_application_path(char *s, size_t len)
|
||||
return;
|
||||
}
|
||||
}
|
||||
#elif defined(__QNX__)
|
||||
char *buff = malloc(len);
|
||||
|
||||
if(_cmdname(buff))
|
||||
{
|
||||
strlcpy(s, buff, len);
|
||||
}
|
||||
|
||||
free(buff);
|
||||
#else
|
||||
{
|
||||
pid_t pid;
|
||||
|
Loading…
Reference in New Issue
Block a user