Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 7, 2005, 3:54:49 PM (19 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: Merged trunk into branch… still not working though…

File:
1 copied

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/lib/util/resource_manager.cc

    r3742 r3746  
    391391   \param directoryName the Directory to check for
    392392   \returns true if it is a directory/symlink false otherwise
     393   \todo implement for win32 usage too
     394   \bug does return false by default on win32
    393395*/
    394396bool ResourceManager::isDir(const char* directoryName)
    395397{
     398        #ifdef __WIN32__
     399                return false;
     400        #elif
    396401  struct stat status;
    397402  stat(directoryName, &status);
     
    400405  else
    401406    return false;
     407  #endif
    402408}
    403409
     
    406412   \param fileName the File to check for
    407413   \returns true if it is a regular file/symlink, false otherwise
     414   \todo implement fo win32 usage too
     415   \bug does return false by default on win32
    408416*/
    409417bool ResourceManager::isFile(const char* fileName)
    410418{
     419        #ifdef __WIN32__
     420                return false;
     421        #elif
    411422  struct stat status;
    412423  stat(fileName, &status);
     
    415426  else
    416427    return false;
     428  #endif
    417429}
    418430
Note: See TracChangeset for help on using the changeset viewer.