• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

ギコナビ


Commit MetaInfo

Revision41a6fee8507972f153072846b4d25b5ac237b0d8 (tree)
Time2006-05-23 23:51:26
Authorh677 <h677>
Commiterh677

Log Message

デフォルトのファイルをコピーして残して置くように変更

Change Summary

Incremental Difference

--- a/InputAssistDataModule.pas
+++ b/InputAssistDataModule.pas
@@ -3,7 +3,7 @@ unit InputAssistDataModule;
33 interface
44
55 uses
6- SysUtils, Classes;
6+ SysUtils, Classes, Windows;
77
88 type
99 TResistWord = class;
@@ -118,7 +118,9 @@ begin
118118 try
119119 // iniƒtƒ@ƒCƒ‹‚ª–³‚¯‚ê‚΁AƒfƒtƒHƒ‹ƒg‚ðƒŠƒl[ƒ€‚·‚é
120120 if not FileExists(FilePath) then begin
121- RenameFile(ChangeFileExt(FilePath, '.default'), FilePath);
121+ CopyFile(
122+ PChar(ChangeFileExt(FilePath, '.default')),
123+ PChar(FilePath), True);
122124 end;
123125
124126 // ƒtƒ@ƒCƒ‹‚Ì‘¶Ý‚ðŠm”F
@@ -160,7 +162,7 @@ var
160162 begin
161163 if FileExists(FilePath) then begin
162164 try
163- DeleteFile(FilePath);
165+ SysUtils.DeleteFile(FilePath);
164166 except
165167 end;
166168 end;