Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 21, 2009, 12:20:23 AM (16 years ago)
Author:
rgrieder
Message:

Installation paths should be relative when using in C++ code if they're actually relative.
This ensures copy & paste installations under windows. For Unix it is only useful when installation to an arbitrary folder instead of /usr
(also resolves a problem the with tcl lib path; Apparently Tcl cannot cope with spaces in the path (and neither "\") so C:/Program Files/ was not working at all)

  • boost::filesystem::path::native_file_string is depricated, using file_string now.
Location:
code/branches/buildsystem3/src/core
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem3/src/core/CommandLine.cc

    r2685 r2687  
    308308        // They will not overwrite the arguments given directly
    309309        std::ifstream file;
    310         file.open(filepath.native_file_string().c_str());
     310        file.open(filepath.file_string().c_str());
    311311        args.clear();
    312312        if (file)
  • code/branches/buildsystem3/src/core/ConfigFileManager.cc

    r2685 r2687  
    230230        // This creates the config file if it's not existing
    231231        std::ofstream createFile;
    232         createFile.open(filepath.native_file_string().c_str(), std::fstream::app);
     232        createFile.open(filepath.file_string().c_str(), std::fstream::app);
    233233        createFile.close();
    234234
    235235        // Open the file
    236236        std::ifstream file;
    237         file.open(filepath.native_file_string().c_str(), std::fstream::in);
     237        file.open(filepath.file_string().c_str(), std::fstream::in);
    238238
    239239        if (!file.is_open())
     
    345345
    346346        std::ofstream file;
    347         file.open(filepath.native_file_string().c_str(), std::fstream::out);
     347        file.open(filepath.file_string().c_str(), std::fstream::out);
    348348        file.setf(std::ios::fixed, std::ios::floatfield);
    349349        file.precision(6);
  • code/branches/buildsystem3/src/core/Language.cc

    r2685 r2687  
    211211        // This creates the file if it's not existing
    212212        std::ofstream createFile;
    213         createFile.open(filepath.native_file_string().c_str(), std::fstream::app);
     213        createFile.open(filepath.file_string().c_str(), std::fstream::app);
    214214        createFile.close();
    215215
    216216        // Open the file
    217217        std::ifstream file;
    218         file.open(filepath.native_file_string().c_str(), std::fstream::in);
     218        file.open(filepath.file_string().c_str(), std::fstream::in);
    219219
    220220        if (!file.is_open())
     
    263263        // Open the file
    264264        std::ifstream file;
    265         file.open(filepath.native_file_string().c_str(), std::fstream::in);
     265        file.open(filepath.file_string().c_str(), std::fstream::in);
    266266
    267267        if (!file.is_open())
     
    320320        // Open the file
    321321        std::ofstream file;
    322         file.open(filepath.native_file_string().c_str(), std::fstream::out);
     322        file.open(filepath.file_string().c_str(), std::fstream::out);
    323323
    324324        if (!file.is_open())
  • code/branches/buildsystem3/src/core/LuaBind.cc

    r2685 r2687  
    9090    output_ = "";
    9191    std::ifstream file;
    92     file.open(filepath.native_file_string().c_str(), std::fstream::in);
     92    file.open(filepath.file_string().c_str(), std::fstream::in);
    9393
    9494    if (!file.is_open())
  • code/branches/buildsystem3/src/core/input/KeyBinder.cc

    r2685 r2687  
    260260        // get bindings from default file if filename doesn't exist.
    261261        std::ifstream infile;
    262         infile.open(filepath.native_file_string().c_str());
     262        infile.open(filepath.file_string().c_str());
    263263        if (!infile)
    264264        {
Note: See TracChangeset for help on using the changeset viewer.