Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7626 in orxonox.OLD for branches/qt_gui/src/lib/parser/ini_parser


Ignore:
Timestamp:
May 16, 2006, 9:40:56 AM (19 years ago)
Author:
bensch
Message:

prefs should work, but they do not :(

Location:
branches/qt_gui/src/lib/parser/ini_parser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/parser/ini_parser/ini_parser.cc

    r7256 r7626  
    108108  if( (stream = fopen (fileName.c_str(), "r")) == NULL)
    109109  {
    110     PRINTF(1)("IniParser could not open %s\n", fileName.c_str());
     110    PRINTF(1)("IniParser could not open %s for reading\n", fileName.c_str());
    111111    return false;
    112112  }
     
    216216  if( (stream = fopen (fileName.c_str(), "w")) == NULL)
    217217  {
    218     PRINTF(1)("IniParser could not open %s\n", fileName.c_str());
     218    PRINTF(1)("IniParser could not open %s for writing\n", fileName.c_str());
    219219    return false;
    220220  }
  • branches/qt_gui/src/lib/parser/ini_parser/ini_parser.h

    r7625 r7626  
    4444
    4545    /** @returns true if the file is opened, false otherwise*/
    46     bool isOpen() const { return (!this->fileName.empty())? true : false; };
     46    bool isOpen() const { return true; } ///HACK //(this->fileName.empty()) ? false : true; };
    4747    /** @returns the fileName we have opened. */
    4848    const std::string& getFileName() const { return this->fileName; };
Note: See TracChangeset for help on using the changeset viewer.