Changeset 22 in dev for ProjectEditor/Backup.cpp
- Timestamp:
- Dec 29, 2006, 1:55:55 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ProjectEditor/Backup.cpp
r3 r22 20 20 lstrcat(szBackupDirPath,"TheText_Temporary_"); 21 21 #else 22 lstrcat(szBackupDirPath," ProjectEditor_Temporary_");22 lstrcat(szBackupDirPath,"abdev_temporary_"); 23 23 #endif 24 24 lstrcat(szBackupDirPath,temp2); … … 35 35 char temporary[MAX_PATH]; 36 36 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 37 44 char *temp2; 38 45 temp2=(char *)malloc(8192); … … 65 72 66 73 67 void RestoreBeforeState(c har *dir_path,char *pHeaderBuffer){74 void RestoreBeforeState(const char *dir_path,char *pHeaderBuffer){ 68 75 int i,i2; 69 76 for(i=0;;i++){ … … 169 176 if(memcmp(wfd.cFileName,"TheText_Temporary_",18)==0){ 170 177 #else 171 if(memcmp(wfd.cFileName," ProjectEditor_Temporary_",24)==0){178 if(memcmp(wfd.cFileName,"abdev_temporary_",16)==0){ 172 179 #endif 173 180 sprintf(temporary,"%s%s\\info.txt",szTempPath,wfd.cFileName);
Note:
See TracChangeset
for help on using the changeset viewer.