Changeset 622 in dev for trunk/ab5.0/abdev/abdev/src/ProjectManager/ProjectManager.cpp
- Timestamp:
- May 21, 2008, 1:16:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/src/ProjectManager/ProjectManager.cpp
r621 r622 196 196 temporary[i2]=buffer[i]; 197 197 } 198 if(temporary[0]!='\0'&&(!(temporary[0]=='0'&&temporary[1]=='\0'))){ 199 lstrcpy(this->ResourceFileName,temporary); 200 GetResourceData(); 201 } 202 else{ 203 sprintf(this->ResourceFileName,"%s.rc",this->GetName().c_str()); 204 } 198 199 // このパラメータは使用しなくなった 205 200 } 206 201 else if(lstrcmpi(temporary,"SOURCE")==0&&buffer[i]=='\r'&&buffer[i+1]=='\n'){ … … 244 239 } 245 240 sprintf(this->lpszOutput_Debug,".\\%s_debug.exe",this->GetName().c_str()); 241 } 242 243 // リソースを読み込む 244 Jenga::Common::Path resourcePath( projectInfo.GetResourceFileFullPath() ); 245 if( resourcePath.IsExistFile() ) 246 { 247 GetResourceData(); 246 248 } 247 249 … … 347 349 sprintf(buffer+i2,"#DEBUG_EXE_PATH=%s\r\n\r\n",this->szExePath); 348 350 i2+=lstrlen(buffer+i2); 349 if(this->ResourceFileName[0]){350 sprintf(buffer+i2,"#RESOURCE=%s\r\n\r\n",this->ResourceFileName);351 i2+=lstrlen(buffer+i2);352 }353 else{354 lstrcpy(buffer+i2,"#RESOURCE=0\r\n\r\n");355 i2+=lstrlen(buffer+i2);356 }357 351 sprintf(buffer+i2,"#SOURCE\r\n"); 358 352 i2+=lstrlen(buffer+i2); … … 369 363 ////////////////////////////////// 370 364 // リソースファイル(*.rc、resource.ab)を作成 371 if(this->ResourceFileName[0]){365 { 372 366 i2=0; 373 367 i3=101; … … 392 386 393 387 //保存(resource.ab) 394 lstrcpy(temporary,"resource.ab"); 395 lstrcpy( temporary, this->GetWorkDir().GetFullPath( temporary ).c_str() ); 396 WriteBuffer(temporary,buffer,i2); 388 WriteBuffer(this->GetWorkDir().GetFullPath( "resource.ab" ),buffer,i2); 397 389 398 390 i2=0; … … 424 416 425 417 //保存 426 lstrcpy(temporary,this->ResourceFileName); 427 lstrcpy( temporary, this->GetWorkDir().GetFullPath( temporary ).c_str() ); 428 WriteBuffer(temporary,buffer,i2); 418 WriteBuffer(this->GetResourceFileFullPath(),buffer,i2); 429 419 } 430 420 … … 498 488 i2+=lstrlen(buffer+i2); 499 489 } 500 if(this->ResourceFileName[0]){ 501 //リソースファイルが含まれる場合 502 lstrcpy(buffer+i2,"\r\n"); 503 i2+=lstrlen(buffer+i2); 504 lstrcpy(buffer+i2,"'リソースファイル\r\n"); 505 i2+=lstrlen(buffer+i2); 506 lstrcpy(buffer+i2,"#include \"resource.ab\"\r\n"); 507 i2+=lstrlen(buffer+i2); 508 sprintf(buffer+i2,"#resource \"%s.rc\"\r\n",this->GetName().c_str()); 509 i2+=lstrlen(buffer+i2); 510 } 490 491 //リソースファイル 492 lstrcpy(buffer+i2,"\r\n"); 493 i2+=lstrlen(buffer+i2); 494 lstrcpy(buffer+i2,"'リソースファイル\r\n"); 495 i2+=lstrlen(buffer+i2); 496 lstrcpy(buffer+i2,"#include \"resource.ab\"\r\n"); 497 i2+=lstrlen(buffer+i2); 498 sprintf(buffer+i2,"#resource \"%s.rc\"\r\n",this->GetName().c_str()); 499 i2+=lstrlen(buffer+i2); 511 500 512 501 //保存
Note:
See TracChangeset
for help on using the changeset viewer.