Added a warning message if the file is not found.
This commit is contained in:
+1
-1
@@ -123,7 +123,7 @@
|
|||||||
|
|
||||||
/** Highest binobj format version we know how to read/write. This starts at
|
/** Highest binobj format version we know how to read/write. This starts at
|
||||||
* 0 and can go up to 65535 */
|
* 0 and can go up to 65535 */
|
||||||
#define SG_BINOBJ_VERSION 5
|
#define SG_BINOBJ_VERSION 6
|
||||||
|
|
||||||
/** for backwards compatibility */
|
/** for backwards compatibility */
|
||||||
#define SG_SCENERY_FILE_FORMAT "0.4"
|
#define SG_SCENERY_FILE_FORMAT "0.4"
|
||||||
|
|||||||
@@ -320,8 +320,8 @@ bool SGBinObject::read_bin( const string& file ) {
|
|||||||
if ( (fp = gzopen( file.c_str(), "rb" )) == NULL ) {
|
if ( (fp = gzopen( file.c_str(), "rb" )) == NULL ) {
|
||||||
string filegz = file + ".gz";
|
string filegz = file + ".gz";
|
||||||
if ( (fp = gzopen( filegz.c_str(), "rb" )) == NULL ) {
|
if ( (fp = gzopen( filegz.c_str(), "rb" )) == NULL ) {
|
||||||
// cout << "ERROR: opening " << file << " or " << filegz
|
cout << "ERROR: opening " << file << " or " << filegz
|
||||||
// << "for reading!" << endl;
|
<< "for reading!" << endl;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user