Changeset 22 in dev for ProjectEditor/Backup.cpp


Ignore:
Timestamp:
Dec 29, 2006, 1:55:55 AM (17 years ago)
Author:
dai_9181
Message:

バックアップ用ディレクトリが消去されていたときは、自動生成する。
プロ版の概念を除去。機能制限を解除。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ProjectEditor/Backup.cpp

    r3 r22  
    2020    lstrcat(szBackupDirPath,"TheText_Temporary_");
    2121#else
    22     lstrcat(szBackupDirPath,"ProjectEditor_Temporary_");
     22    lstrcat(szBackupDirPath,"abdev_temporary_");
    2323#endif
    2424    lstrcat(szBackupDirPath,temp2);
     
    3535    char temporary[MAX_PATH];
    3636
     37    lstrcpy( temporary, szBackupDirPath );
     38    if( temporary[lstrlen(temporary)-1] == '\\' ) temporary[lstrlen(temporary)-1] = 0;
     39    if( !IsExistDirectory( temporary ) ){
     40        //バックアップ用一時ディレクトリが存在しないときは作る
     41        CreateDirectory( temporary, NULL );
     42    }
     43
    3744    char *temp2;
    3845    temp2=(char *)malloc(8192);
     
    6572
    6673
    67 void RestoreBeforeState(char *dir_path,char *pHeaderBuffer){
     74void RestoreBeforeState(const char *dir_path,char *pHeaderBuffer){
    6875    int i,i2;
    6976    for(i=0;;i++){
     
    169176                if(memcmp(wfd.cFileName,"TheText_Temporary_",18)==0){
    170177#else
    171                 if(memcmp(wfd.cFileName,"ProjectEditor_Temporary_",24)==0){
     178                if(memcmp(wfd.cFileName,"abdev_temporary_",16)==0){
    172179#endif
    173180                    sprintf(temporary,"%s%s\\info.txt",szTempPath,wfd.cFileName);
Note: See TracChangeset for help on using the changeset viewer.