Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7433 in orxonox.OLD


Ignore:
Timestamp:
Apr 29, 2006, 2:33:03 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Working on Windows too :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/osdir.h

    r7425 r7433  
    121121#elif defined(OSLINK_OSDIR_WINDOWS)
    122122
     123#ifdef DATADIR
     124#undef DATADIR
     125#endif
     126
    123127#include <windows.h>
    124128#include <winbase.h>
     
    137141      ~Directory()
    138142      {
    139           this->close
     143        this->close();
    140144      }
    141145
     
    151155        {
    152156          willfail = true;
    153           return;
     157          return false;
    154158        }
    155159        std::string Full(directoryName);
     
    160164        handle = FindFirstFile( (Full+"*").c_str(), &entry);
    161165        if (handle == INVALID_HANDLE_VALUE)
    162           willfail = true;
    163         else
    164           current = entry.cFileName;
     166          {
     167            willfail = true;
     168            return false;
     169          }
     170        else
     171          {
     172            willfail = false;
     173            current = entry.cFileName;
     174            return true;
     175          }
    165176      }
    166177
Note: See TracChangeset for help on using the changeset viewer.