freebsd-ports/games/blockout/files/patch-BlockOut__Utils.cpp
Mathieu Arnold 9bbcf4d0cc Update to 2.5
PR:		203057
Submitted by:	maintainer
Sponsored by:	Absolight
2015-10-16 14:19:25 +00:00

16 lines
579 B
C++

--- BlockOut/Utils.cpp.orig 2014-05-06 16:47:55.000000000 +0700
+++ BlockOut/Utils.cpp 2015-08-17 10:34:51.000000000 +0600
@@ -207,11 +207,9 @@
return FALSE;
}
- char *blockoutHome = getenv("BL2_HOME");
+ const char *blockoutHome = getenv("BL2_HOME");
if( blockoutHome==NULL ) {
- printf("BL2_HOME environement variable if not defined !\n");
- printf("Please set the BL2_HOME to the BlockOut II installation directory (ex: BL2_HOME=/usr/local/bl2).\n");
- return FALSE;
+ blockoutHome="%%DATADIR%%";
}
strcpy( bl2Home , blockoutHome );