Quote:
Maybe that is the cause of h3dutLoadResourcesFromDisk( _contentDir.c_str() ) failure.
Yeah, the full path is defined in main.cpp for Chicago (same for the Knight sample I'm sure):
Code:
std::string extractAppPath( char *fullPath )
{
#ifdef __APPLE__
std::string s( fullPath );
for( int i = 0; i < 4; ++i )
s = s.substr( 0, s.rfind( "/" ) );
return s + "/../";
#else
const std::string s( fullPath );
if( s.find( "/" ) != std::string::npos )
return s.substr( 0, s.rfind( "/" ) ) + "/";
else if( s.find( "\\" ) != std::string::npos )
return s.substr( 0, s.rfind( "\\" ) ) + "\\";
else
return "";
#endif
}
So I guess it should be up two directories? I tried putting the Content directory in multiple places without luck. Oh well, I got it working after setting the directory in the code myself.