Ignore:
Timestamp:
Jun 17, 2007, 9:56:19 PM (17 years ago)
Author:
dai_9181
Message:

BasicSysDirをGetAppDirに置き換えた

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/BasicCompiler.cpp

    r165 r167  
    1 #include <jenga/include/common/logger.h>
    2 #include <jenga/include/common/Environment.h>
     1#include <Program.h>
    32
    43#include "BasicCompiler.h"
     
    163162    lstrcpy(path,temp3);
    164163}
    165 void GetFullPath(char *path,char *dir){
     164void GetFullPath( char *path, const string &baseDirPath ){
    166165    int i,i2,i3,i4;
    167166    char temporary[MAX_PATH];
     
    186185    }
    187186
    188     i3=lstrlen(dir);i4=0;
     187    i3=baseDirPath.size();i4=0;
    189188    while(i4<i2){
    190189        for(i3--;;i3--){
    191             if(dir[i3-1]=='\\'){
     190            if(baseDirPath[i3-1]=='\\'){
    192191                i4++;
    193192                break;
     
    195194        }
    196195    }
    197     memcpy(temporary,dir,i3);
     196    memcpy(temporary,baseDirPath.c_str(),i3);
    198197    temporary[i3]=0;
    199198    lstrcat(temporary,path+i);
     
    563562    hInst=hThisInst;
    564563
    565     GetModuleFileName(hInst,temporary,MAX_PATH);
    566     _splitpath(temporary,BasicSystemDir,temp2,NULL,NULL);
    567     lstrcat(BasicSystemDir,temp2);
    568 
    569564    //不揮発性データを取得
    570565    pobj_nv=new CNonVolatile;
     
    742737
    743738    //インクルードディレクトリを絶対パスに変更
    744     GetFullPath(szIncludeDir,BasicSystemDir);
     739    GetFullPath(szIncludeDir,(Jenga::Common::Environment::GetAppDir()+"\\").c_str());
    745740
    746741    if(bDll){
Note: See TracChangeset for help on using the changeset viewer.