Changeset 749 in dev for trunk/ab5.0/jenga/src


Ignore:
Timestamp:
Sep 15, 2008, 6:06:34 PM (16 years ago)
Author:
dai
Message:

「フォルダを開く」コマンドで、ファイル選択を可能にした。

Location:
trunk/ab5.0/jenga/src/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/jenga/src/common/FileSystem.cpp

    r694 r749  
    1111
    1212    Jenga::Common::Path path( tempFindStr );
    13     std::string dirPath = path.GetDriveName() + path.GetDirName();
     13    std::string dirPath = path.GetDirPath();
    1414    if( !dirPath.empty() && dirPath[dirPath.size()-1] == '\\' )
    1515    {
  • trunk/ab5.0/jenga/src/common/Path.cpp

    r623 r749  
    7979std::string Jenga::Common::Path::ExtractDirPath( const std::string &filepath )
    8080{
    81     Path path( filepath );
    82     std::string result = path.GetDriveName() + path.GetDirName();
    83     return result;
     81    return Path( filepath ).GetDirPath();
    8482}
Note: See TracChangeset for help on using the changeset viewer.