numptyphysics -> 2010/09/16 npcomplete -> 2010/01/24 Kudos to sthen@ for mirroring the distfiles
18 lines
578 B
Plaintext
18 lines
578 B
Plaintext
$OpenBSD: patch-Config_cpp,v 1.1 2012/12/12 14:58:00 dcoppa Exp $
|
|
--- Config.cpp.orig Thu Dec 6 12:24:31 2012
|
|
+++ Config.cpp Thu Dec 6 12:25:42 2012
|
|
@@ -44,12 +44,8 @@ const int NUM_BRUSHES = (sizeof(brushColours)/sizeof(b
|
|
|
|
std::string Config::findFile( const std::string& name )
|
|
{
|
|
- std::string p( "data/" );
|
|
+ std::string p( DEFAULT_RESOURCE_PATH "/" );
|
|
FILE *fd = fopen( (p+name).c_str(), "rb" );
|
|
- if ( !fd ) {
|
|
- p = std::string( DEFAULT_RESOURCE_PATH "/" );
|
|
- fd = fopen( (p+name).c_str(), "rb" );
|
|
- }
|
|
if ( fd ) {
|
|
fclose(fd);
|
|
return p+name;
|