mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
6f7709e4b8
- Regenerate patch to silence portlint warning PR: 202849 Submitted by: tkato432@yahoo.com
15 lines
409 B
C
15 lines
409 B
C
--- lgc-pg/misc.c.orig 2015-03-15 14:09:24 UTC
|
|
+++ lgc-pg/misc.c
|
|
@@ -428,7 +428,10 @@ const char *get_gamedir(void)
|
|
return ".";
|
|
#else
|
|
static char gamedir[MAXPATHLEN];
|
|
- snprintf( gamedir, MAXPATHLEN, "%s", INSTALLDIR );
|
|
+ if (dest_path)
|
|
+ snprintf( gamedir, MAXPATHLEN, "%s", dest_path );
|
|
+ else
|
|
+ snprintf( gamedir, MAXPATHLEN, "%s", INSTALLDIR );
|
|
return gamedir;
|
|
#endif
|
|
}
|