Scope-eye.net Git Repository
/
liskon_frotz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f43679b
)
Remove getexepath.
author
Timo Korvola
<tkorvola@iki.fi>
Tue, 27 Mar 2018 14:16:57 +0000
(17:16 +0300)
committer
Timo Korvola
<tkorvola@iki.fi>
Tue, 27 Mar 2018 19:05:37 +0000
(22:05 +0300)
getexepath was unportable but fortunately unused.
src/sdl/sf_util.c
patch
|
blob
|
history
diff --git
a/src/sdl/sf_util.c
b/src/sdl/sf_util.c
index 017129e5b9e268cb328f96e23ca2887e13e26a75..9644a0447b8404649580f6cf4e1d3ca061c37e0f 100644
(file)
--- a/
src/sdl/sf_util.c
+++ b/
src/sdl/sf_util.c
@@
-951,21
+951,6
@@
int sf_pkread( FILE *f, int foffs, void ** out, int *size)
#include <unistd.h>
#endif
-static char * getexepath( char *buf){
-#ifdef WIN32
- buf[0] = 0;
- GetModuleFileName(NULL,buf,262);
-#else
- char baf[80];
- int n;
- sprintf(baf,"/proc/%d/exe",getpid());
- n = readlink(baf,buf,262);
- if (n < 0) n = 0;
- buf[n] = 0;
-#endif
- return buf;
- }
-
#ifndef WIN32
#define _stat stat
#endif