Skip to content

Commit

Permalink
games/yquake2: the port had been updated to version 8.10
Browse files Browse the repository at this point in the history
While here, do not needlessly initialize local variable as the
FS_GetNextRawPath() would DTRT itself and drop one extra space.

PR:	265286
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Oct 28, 2022
1 parent c783ffd commit 517ca7b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion games/yquake2/Makefile
@@ -1,5 +1,5 @@
PORTNAME= yquake2
PORTVERSION= 8.01
PORTVERSION= 8.10
CATEGORIES= games
MASTER_SITES= https://deponie.yamagi.org/quake2/
DISTNAME= quake2-${PORTVERSION}
Expand Down
6 changes: 3 additions & 3 deletions games/yquake2/distinfo
@@ -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
4 changes: 2 additions & 2 deletions games/yquake2/files/patch-src_client_vid_vid.c
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions games/yquake2/pkg-plist
Expand Up @@ -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
Expand Down

0 comments on commit 517ca7b

Please sign in to comment.