@@ -224,6 +224,7 @@ TProject = class
224
224
procedure SetSymbolsToIgnore (const Value : TStrings);
225
225
procedure SetIgnoredFiles (const AValue: String);
226
226
procedure SetCustomCTypesMap (const AValue: String);
227
+ procedure SetScript (const AValue: String);
227
228
procedure SetModified (const AValue: Boolean);
228
229
private
229
230
procedure SymbolsToIgnoreChange (Sender: TObject);
@@ -387,7 +388,7 @@ TProject = class
387
388
property SymbolsToIgnore: TStrings read FSymbolsToIgnore write SetSymbolsToIgnore;
388
389
389
390
{ PostProcessing script}
390
- property Script: String read FScript write FScript ;
391
+ property Script: String read FScript write SetScript ;
391
392
end ;
392
393
393
394
implementation
@@ -724,8 +725,6 @@ procedure TProject.Save(const AFilename: String);
724
725
for I := 0 to FSymbolsToIgnore.Count - 1 do
725
726
IniFile.WriteString(IS_IGNORE, ID_ITEM + I.ToString, FSymbolsToIgnore[I]);
726
727
727
- IniFile.WriteStringBinary(IS_POSTPROCESS, ID_SCRIPT, FScript);
728
-
729
728
IniFile.WriteStringBinary(FScript, IS_POSTPROCESS, ID_SCRIPT);
730
729
731
730
IniFile.UpdateFile;
@@ -774,7 +773,7 @@ procedure TProject.SetCommentConvert(const Value: TCommentConvert);
774
773
775
774
procedure TProject.SetCustomCTypesMap (const AValue: String);
776
775
begin
777
- if (not SameText(FCustomCTypesMap,AValue)) then
776
+ if (not SameText(FCustomCTypesMap, AValue)) then
778
777
begin
779
778
FCustomCTypesMap := AValue;
780
779
Modified := True;
@@ -884,6 +883,15 @@ procedure TProject.SetReservedWordHandling(const Value: TReservedWordHandling);
884
883
end ;
885
884
end ;
886
885
886
+ procedure TProject.SetScript (const AValue: String);
887
+ begin
888
+ if (not SameText(FScript, AValue)) then
889
+ begin
890
+ FScript := AValue;
891
+ Modified := True;
892
+ end ;
893
+ end ;
894
+
887
895
procedure TProject.SetSymbolsToIgnore (const Value : TStrings);
888
896
begin
889
897
FSymbolsToIgnore.Assign(Value );
0 commit comments