- add README

- fix typo in files/baldurs_gate_1.cfg
- remove GameOverridePath option in files/baldurs_gate1.cfg
- backport fix from upstream for "Unable to create cache directory"

from Nam Nguyen with some tweaks by me.
This commit is contained in:
kirby 2019-07-31 07:55:32 +00:00
parent cd49887a41
commit 6470b8b974
5 changed files with 49 additions and 5 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.13 2019/07/12 20:46:18 sthen Exp $
# $OpenBSD: Makefile,v 1.14 2019/07/31 07:55:32 kirby Exp $
SHARED_LIBS += gemrb_core 0.0
COMMENT = open-source implementation of Bioware's Infinity Engine
DISTNAME = gemrb-0.8.5
REVISION = 2
REVISION = 3
CATEGORIES = games emulators x11

View File

@ -10,8 +10,7 @@ CaseSensitive=1
Width=640
Height=480
Fullscreen=1
GemRBPath=${LOCALASE}/share/gemrb
GameOverridePath=/data
GemRBPath=${LOCALBASE}/share/gemrb
CachePath=/tmp/cache/
PluginsPath=${LOCALBASE}/lib/gemrb/plugins
SavePath=~/.baldursgate

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-gemrb_core_System_VFS_cpp,v 1.1 2019/07/31 07:55:32 kirby Exp $
Fixes [Core/FATAL]: Unable to create cache directory '/tmp/cache'
Upstream commit 3225a40f0f0c236934feba773d0be0cc2a14c64b
Index: gemrb/core/System/VFS.cpp
--- gemrb/core/System/VFS.cpp.orig
+++ gemrb/core/System/VFS.cpp
@@ -413,7 +413,7 @@ bool MakeDirectories(const char* path)
assert(strnlen(path, _MAX_PATH/2) < _MAX_PATH/2);
strcpy(Tokenized, path);
- char* Token = strtok(Tokenized, &PathDelimiter);
+ char* Token = strtok(Tokenized, SPathDelimiter);
while(Token != NULL) {
if(TempFilePath[0] == 0) {
if(path[0] == PathDelimiter) {
@@ -428,7 +428,7 @@ bool MakeDirectories(const char* path)
if(!MakeDirectory(TempFilePath))
return false;
- Token = strtok(NULL, &PathDelimiter);
+ Token = strtok(NULL, SPathDelimiter);
}
return true;
}

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.5 2018/06/29 22:16:13 espie Exp $
@comment $OpenBSD: PLIST,v 1.6 2019/07/31 07:55:32 kirby Exp $
bin/extend2da.py
@bin bin/gemrb
lib/gemrb/
@ -138,6 +138,7 @@ share/doc/gemrb/en/Tables/wstwohnd.txt
share/doc/gemrb/en/Tables/wstwowpn.txt
share/doc/gemrb/en/default_ini.txt
share/doc/gemrb/en/gemrb_ini.txt
share/doc/pkg-readmes/${PKGSTEM}
share/examples/gemrb/
@sample ${SYSCONFDIR}/gemrb/
share/examples/gemrb/GemRB.cfg.noinstall.sample

18
games/gemrb/pkg/README Normal file
View File

@ -0,0 +1,18 @@
$OpenBSD: README,v 1.1 2019/07/31 07:55:32 kirby Exp $
+-------------------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-------------------------------------------------------------------------------
Getting the games
=================
GemRB requires the original game files. These can be from original CDs or
GOG.com.
Extracting
==========
innoextract from packages can be used to extract the GOG.com version.
$ innoextract -g -m setup_baldurs_gate_2.0.0.20.exe