games/yquake2: the port had been updated to version 8.10
While here, do not needlessly initialize local variable as the FS_GetNextRawPath() would DTRT itself and drop one extra space. PR: 265286
This commit is contained in:
parent
c783ffdd63
commit
517ca7b450
@ -1,5 +1,5 @@
|
||||
PORTNAME= yquake2
|
||||
PORTVERSION= 8.01
|
||||
PORTVERSION= 8.10
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= https://deponie.yamagi.org/quake2/
|
||||
DISTNAME= quake2-${PORTVERSION}
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1642841575
|
||||
SHA256 (quake2-8.01.tar.xz) = 132889a6976dd7c75bf94a4ca49c76ff09cf843d66541872320d7a02a25a622c
|
||||
SIZE (quake2-8.01.tar.xz) = 2109408
|
||||
TIMESTAMP = 1653801164
|
||||
SHA256 (quake2-8.10.tar.xz) = 93d625f67bd365d943113f6aa7c65f6fd2bd4c46c4ab77eedc4642735c143ea1
|
||||
SIZE (quake2-8.10.tar.xz) = 2138064
|
||||
|
@ -5,9 +5,9 @@
|
||||
VID_GetRendererLibPath(const char *renderer, char *path, size_t len)
|
||||
{
|
||||
- snprintf(path, len, "%sref_%s.%s", Sys_GetBinaryDir(), renderer, lib_ext);
|
||||
+ char *next_path = NULL;
|
||||
+ char *next_path;
|
||||
+
|
||||
+ while ((next_path = FS_GetNextRawPath (next_path)) != NULL) {
|
||||
+ while ((next_path = FS_GetNextRawPath(next_path)) != NULL) {
|
||||
+ snprintf(path, len, "%s/ref_%s.%s", next_path, renderer, lib_ext);
|
||||
+ if (Sys_IsFile(path))
|
||||
+ break;
|
||||
|
@ -3,6 +3,7 @@ bin/yquake2
|
||||
lib/yquake2/baseq2/game.so
|
||||
lib/yquake2/ref_gl1.so
|
||||
lib/yquake2/ref_gl3.so
|
||||
lib/yquake2/ref_gles3.so
|
||||
lib/yquake2/ref_soft.so
|
||||
%%PORTDOCS%%%%DOCSDIR%%/010_index.md
|
||||
%%PORTDOCS%%%%DOCSDIR%%/020_installation.md
|
||||
|
Loading…
Reference in New Issue
Block a user