Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 5, 2009, 2:58:42 PM (15 years ago)
Author:
rgrieder
Message:

Using POSIX forward slashes on Windows as well. There is only one exception: Plugin loading in GSGraphics.cc

  • Removed Core::getFooPathPOSIXString()
  • Modified Core::getFooPathString() to return POSIX path strings.

This should problems when exchanging file strings over the network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/core/Language.cc

    r2710 r2750  
    210210        // This creates the file if it's not existing
    211211        std::ofstream createFile;
    212         createFile.open(filepath.file_string().c_str(), std::fstream::app);
     212        createFile.open(filepath.string().c_str(), std::fstream::app);
    213213        createFile.close();
    214214
    215215        // Open the file
    216216        std::ifstream file;
    217         file.open(filepath.file_string().c_str(), std::fstream::in);
     217        file.open(filepath.string().c_str(), std::fstream::in);
    218218
    219219        if (!file.is_open())
     
    261261        // Open the file
    262262        std::ifstream file;
    263         file.open(filepath.file_string().c_str(), std::fstream::in);
     263        file.open(filepath.string().c_str(), std::fstream::in);
    264264
    265265        if (!file.is_open())
     
    317317        // Open the file
    318318        std::ofstream file;
    319         file.open(filepath.file_string().c_str(), std::fstream::out);
     319        file.open(filepath.string().c_str(), std::fstream::out);
    320320
    321321        if (!file.is_open())
Note: See TracChangeset for help on using the changeset viewer.