Skip to content

Commit

Permalink
Unimportant spacing changes made while reading code
Browse files Browse the repository at this point in the history
  • Loading branch information
cthielen committed May 16, 2012
1 parent 532ae9e commit 87e989e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
9 changes: 5 additions & 4 deletions Source/Utilities/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ list<string> Filesystem::paths;
* \return Nonzero on success. */
int Filesystem::Init( const char* argv0 ) {
int retval;

if ( (retval = PHYSFS_init(argv0)) == 0 )
LogMsg(ERR,"Error initializing PhysicsFS. Reason: %s",PHYSFS_getLastError());
LogMsg(ERR, "Error initializing PhysicsFS. Reason: %s", PHYSFS_getLastError());

if ( (retval = PHYSFS_setSaneConfig("games", "epiar", NULL, 0, 0 ) ) == 0 )
LogMsg(ERR,"Could not set sane paths for PhysFS: %s", PHYSFS_getLastError());
LogMsg(ERR, "Could not set sane paths for PhysFS: %s", PHYSFS_getLastError());

// Set up userDir
if ( (retval = PHYSFS_mkdir("Resources/Definitions/") ) == 0 )
LogMsg(ERR,"Could not set up the user dir: %s", PHYSFS_getLastError());
LogMsg(ERR, "Could not set up the user dir: %s", PHYSFS_getLastError());

// Don't add Root directory. While this can solve some problems, it will create more.
// Absolute paths are not portable across computers.
Expand All @@ -43,7 +44,7 @@ int Filesystem::Init( const char* argv0 ) {
#ifdef DATADIR
// If using autotools, include this prefix to help binary find data files for cases where 'make install' was used
if ( (retval = PHYSFS_addToSearchPath(DATADIR, 1)) == 0 )
LogMsg(INFO,"Not using DATADIR directory due to error, probably 'make install' not run yet. Reason: %s", PHYSFS_getLastError());
LogMsg(INFO, "Not using DATADIR directory due to an error. Guessing 'make install' has not been run yet. Reason: %s", PHYSFS_getLastError());
#endif /* DATADIR */

return retval;
Expand Down
7 changes: 0 additions & 7 deletions Source/Utilities/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,10 @@ Log::Log()
colors[DEBUG2] = Green;
colors[DEBUG3] = Green;
colors[DEBUG4] = Green;


istty = isatty(fileno(stdin));
if( istty ) {
printf( "stdin is a terminal\n" );
} else {
printf( "stdin is a file or a pipe\n");
}
#endif


// generate the log's filename based on the time
logFilename = string("Epiar-Log-") + GetTimestamp() + string(".xml");
printf("Logging to: '%s'\n",logFilename.c_str());
Expand Down

0 comments on commit 87e989e

Please sign in to comment.