ギコナビ
Revision | 41a6fee8507972f153072846b4d25b5ac237b0d8 (tree) |
---|---|
Time | 2006-05-23 23:51:26 |
Author | h677 <h677> |
Commiter | h677 |
デフォルトのファイルをコピーして残して置くように変更
@@ -3,7 +3,7 @@ unit InputAssistDataModule; | ||
3 | 3 | interface |
4 | 4 | |
5 | 5 | uses |
6 | - SysUtils, Classes; | |
6 | + SysUtils, Classes, Windows; | |
7 | 7 | |
8 | 8 | type |
9 | 9 | TResistWord = class; |
@@ -118,7 +118,9 @@ begin | ||
118 | 118 | try |
119 | 119 | // init@Cª³¯êÎAftHgðl[·é |
120 | 120 | if not FileExists(FilePath) then begin |
121 | - RenameFile(ChangeFileExt(FilePath, '.default'), FilePath); | |
121 | + CopyFile( | |
122 | + PChar(ChangeFileExt(FilePath, '.default')), | |
123 | + PChar(FilePath), True); | |
122 | 124 | end; |
123 | 125 | |
124 | 126 | // t@C̶ÝðmF |
@@ -160,7 +162,7 @@ var | ||
160 | 162 | begin |
161 | 163 | if FileExists(FilePath) then begin |
162 | 164 | try |
163 | - DeleteFile(FilePath); | |
165 | + SysUtils.DeleteFile(FilePath); | |
164 | 166 | except |
165 | 167 | end; |
166 | 168 | end; |