mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
file_path_special.c - cleanup
This commit is contained in:
parent
df13e6a1fd
commit
0f202cad8e
@ -26,26 +26,16 @@
|
||||
#include <time.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef __HAIKU__
|
||||
#include <kernel/image.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <direct.h>
|
||||
#else
|
||||
#include <unistd.h> /* stat() is defined here */
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#endif
|
||||
|
||||
#if defined(__CELLOS_LV2__)
|
||||
#ifndef S_ISDIR
|
||||
#define S_ISDIR(x) (x & 0040000)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <file/file_path.h>
|
||||
#include <compat/strl.h>
|
||||
#include <compat/posix_string.h>
|
||||
@ -203,6 +193,7 @@ void fill_pathname_application_path(char *buf, size_t size)
|
||||
snprintf(link_path, sizeof(link_path), "/proc/%u/%s",
|
||||
(unsigned)pid, exts[i]);
|
||||
ret = readlink(link_path, buf, size - 1);
|
||||
|
||||
if (ret >= 0)
|
||||
{
|
||||
buf[ret] = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user