Ignore:
Timestamp:
Apr 4, 2008, 7:47:07 PM (17 years ago)
Author:
dai_9181
Message:

構成管理を変更中・・・(いったんコミット)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/ProjectEditor/ProjectControl.cpp

    r302 r475  
     1#include "stdafx.h"
     2
    13#include "Common.h"
     4
     5using namespace ActiveBasic::IDE;
    26
    37#if defined(JPN)
     
    894898    }
    895899    else if(NewProjectInfo.dwTypeID==IDC_EXE_DIRECTX){
    896         sprintf(temporary,"%sSubOperation\\dx\\main_exe_directx.abp",pj_editor_Dir);
    897         pTemp=ReadBuffer(temporary);
     900        const std::string mainExeDirectXAbpPath = Program::GetApplicationSystemDirPath() + "\\system\\dx\\main_exe_directx.abp";
     901        pTemp = ReadBuffer( mainExeDirectXAbpPath );
    898902
    899903        //#name#をプロジェクト名に置換
     
    962966    /////////////////////
    963967
    964     if(NewProjectInfo.dwTypeID==IDC_EXE_WINDOWBASE){
    965 #if defined(JPN)
    966         //日本語ファイル
    967         sprintf(temporary,"%sSubOperation\\MainWnd_exe_windowbase.sbp",pj_editor_Dir);
    968 #else
    969         //英語ファイル
    970         sprintf(temporary,"%sSubOperation\\MainWnd_exe_windowbase_e.sbp",pj_editor_Dir);
    971 #endif
     968    std::string mainWndSbpPath = "";
     969    if(NewProjectInfo.dwTypeID==IDC_EXE_WINDOWBASE)
     970    {
     971        mainWndSbpPath = Program::GetApplicationSystemDirPath() + "\\MainWnd_exe_windowbase.sbp";
    972972    }
    973973    else if(NewProjectInfo.dwTypeID==IDC_EXE_DIRECTX)
    974         sprintf(temporary,"%sSubOperation\\dx\\MainWnd_exe_directx.sbp",pj_editor_Dir);
    975     else
    976         temporary[0]=0;
    977 
    978     if(temporary[0]){
    979         pTemp=ReadBuffer(temporary);
     974    {
     975        mainWndSbpPath = Program::GetApplicationSystemDirPath() + "\\MainWnd_exe_directx.sbp";
     976    }
     977
     978    if( !mainWndSbpPath.empty() ){
     979        pTemp = ReadBuffer( mainWndSbpPath );
    980980
    981981        //#name#をプロジェクト名に置換
     
    10171017
    10181018        //dx_graphics.sbpをコピー
    1019         sprintf(temporary,"%sSubOperation\\dx\\dx_graphics.sbp",pj_editor_Dir);
    1020         pTemp=ReadBuffer(temporary);
     1019        const std::string dxGraphicsSbpPath = Program::GetApplicationSystemDirPath() + "\\dx\\dx_graphics.sbp";
     1020        pTemp = ReadBuffer( dxGraphicsSbpPath );
    10211021        sprintf(temporary,"%sdx_graphics.sbp",dir,NewProjectInfo.name);
    10221022        WriteBuffer(temporary,pTemp,lstrlen(pTemp));
     
    10241024
    10251025        //dx_input.sbpをコピー
    1026         sprintf(temporary,"%sSubOperation\\dx\\dx_input.sbp",pj_editor_Dir);
    1027         pTemp=ReadBuffer(temporary);
     1026        const std::string dxInputSbpPath = Program::GetApplicationSystemDirPath() + "\\dx\\dx_input.sbp";
     1027        pTemp = ReadBuffer( dxInputSbpPath );
    10281028        sprintf(temporary,"%sdx_input.sbp",dir,NewProjectInfo.name);
    10291029        WriteBuffer(temporary,pTemp,lstrlen(pTemp));
     
    10311031
    10321032        //dx_music.sbpをコピー
    1033         sprintf(temporary,"%sSubOperation\\dx\\dx_music.sbp",pj_editor_Dir);
    1034         pTemp=ReadBuffer(temporary);
     1033        const std::string dxMusicSbpPath = Program::GetApplicationSystemDirPath() + "\\dx\\dx_music.sbp";
     1034        pTemp = ReadBuffer( dxMusicSbpPath );
    10351035        sprintf(temporary,"%sdx_music.sbp",dir,NewProjectInfo.name);
    10361036        WriteBuffer(temporary,pTemp,lstrlen(pTemp));
     
    10971097    //マニフェストを作成
    10981098    char temp2[MAX_PATH];
    1099     sprintf(temporary,"%sSubOperation\\manifest_temp.xml",pj_editor_Dir);
     1099    const std::string manifestTempXmlPath = Program::GetApplicationSystemDirPath() + "\\manifest_temp.xml";
    11001100    sprintf(temp2,"%s%s.manifest.xml",dir,NewProjectInfo.name);
    1101     CopyFile(temporary,temp2,0);
     1101    CopyFile( manifestTempXmlPath.c_str(), temp2, 0 );
    11021102
    11031103
Note: See TracChangeset for help on using the changeset viewer.