Changeset 475 in dev for trunk/ab5.0/abdev/ProjectEditor/ProjectControl.cpp
- Timestamp:
- Apr 4, 2008, 7:47:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ProjectEditor/ProjectControl.cpp
r302 r475 1 #include "stdafx.h" 2 1 3 #include "Common.h" 4 5 using namespace ActiveBasic::IDE; 2 6 3 7 #if defined(JPN) … … 894 898 } 895 899 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 ); 898 902 899 903 //#name#をプロジェクト名に置換 … … 962 966 ///////////////////// 963 967 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"; 972 972 } 973 973 else if(NewProjectInfo.dwTypeID==IDC_EXE_DIRECTX) 974 sprintf(temporary,"%sSubOperation\\dx\\MainWnd_exe_directx.sbp",pj_editor_Dir);975 else976 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 ); 980 980 981 981 //#name#をプロジェクト名に置換 … … 1017 1017 1018 1018 //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 ); 1021 1021 sprintf(temporary,"%sdx_graphics.sbp",dir,NewProjectInfo.name); 1022 1022 WriteBuffer(temporary,pTemp,lstrlen(pTemp)); … … 1024 1024 1025 1025 //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 ); 1028 1028 sprintf(temporary,"%sdx_input.sbp",dir,NewProjectInfo.name); 1029 1029 WriteBuffer(temporary,pTemp,lstrlen(pTemp)); … … 1031 1031 1032 1032 //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 ); 1035 1035 sprintf(temporary,"%sdx_music.sbp",dir,NewProjectInfo.name); 1036 1036 WriteBuffer(temporary,pTemp,lstrlen(pTemp)); … … 1097 1097 //マニフェストを作成 1098 1098 char temp2[MAX_PATH]; 1099 sprintf(temporary,"%sSubOperation\\manifest_temp.xml",pj_editor_Dir);1099 const std::string manifestTempXmlPath = Program::GetApplicationSystemDirPath() + "\\manifest_temp.xml"; 1100 1100 sprintf(temp2,"%s%s.manifest.xml",dir,NewProjectInfo.name); 1101 CopyFile( temporary,temp2,0);1101 CopyFile( manifestTempXmlPath.c_str(), temp2, 0 ); 1102 1102 1103 1103
Note:
See TracChangeset
for help on using the changeset viewer.