Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 16, 2006, 3:21:30 PM (18 years ago)
Author:
patrick
Message:

bsp: config parsing tests

Location:
branches/bsp_model/src/lib/graphics/importer/md3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_animation_cfg.cc

    r8532 r8533  
    4444    if( !this->dataStream) {
    4545      PRINTF(1)("Error: file could not be opened: %s\n", filename.c_str());
     46      return;
    4647    }
     48
     49    this->loadConfig(filename);
    4750  }
    4851
     
    5861   * loads the configuration file
    5962   */
    60   void MD3AnimationCfg::loadConfig()
     63  void MD3AnimationCfg::loadConfig(std::string filename)
    6164  {
    6265//     BufferedReader bin=new BufferedReader(new InputStreamReader(in));
     
    9093            tokens.pop_back();
    9194          }
    92           return;
     95
     96          this->dataStream.getline(buffer, 1024, '\n');
     97          std::string line(buffer);
     98        }
     99      }
     100    }
    93101/*
    94102          st.nextToken(); //throw away first token
     
    160168      throw new IOException(e.getMessage());
    161169    }*/
    162         }
    163       }
    164     }
     170
    165171  }
    166172
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_animation_cfg.h

    r8532 r8533  
    3535      virtual ~MD3AnimationCfg();
    3636
    37       void loadConfig();
     37      void loadConfig(std::string filename);
    3838
    3939      std::string toString() { return std::string("Name: " + this->filename); }
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc

    r8490 r8533  
    1919#include "md3_data.h"
    2020
     21#include "md3_animation_cfg.h"
    2122
    2223namespace md3
     
    2930  {
    3031    this->md3Data = new MD3Data(filename, filename, scaling);
     32
     33    MD3AnimationCfg cfg("/home/boenzlip/tmp/q3/Downloads/MOH/q3mdl-alien3/models/players/alien3/animation.cfg");
    3134  }
    3235
Note: See TracChangeset for help on using the changeset viewer.