Skip to content

Commit 4a74f43

Browse files
committed
Post Processing fixes
1 parent b0587a5 commit 4a74f43

File tree

7 files changed

+995
-1007
lines changed

7 files changed

+995
-1007
lines changed

Bin/Chet.exe

-19.5 KB
Binary file not shown.

Chet.dproj

+191-184
Large diffs are not rendered by default.

Chet.res

0 Bytes
Binary file not shown.

Classes/Chet.Project.pas

+12-4
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ TProject = class
224224
procedure SetSymbolsToIgnore(const Value: TStrings);
225225
procedure SetIgnoredFiles(const AValue: String);
226226
procedure SetCustomCTypesMap(const AValue: String);
227+
procedure SetScript(const AValue: String);
227228
procedure SetModified(const AValue: Boolean);
228229
private
229230
procedure SymbolsToIgnoreChange(Sender: TObject);
@@ -387,7 +388,7 @@ TProject = class
387388
property SymbolsToIgnore: TStrings read FSymbolsToIgnore write SetSymbolsToIgnore;
388389

389390
{ PostProcessing script}
390-
property Script: String read FScript write FScript;
391+
property Script: String read FScript write SetScript;
391392
end;
392393

393394
implementation
@@ -724,8 +725,6 @@ procedure TProject.Save(const AFilename: String);
724725
for I := 0 to FSymbolsToIgnore.Count - 1 do
725726
IniFile.WriteString(IS_IGNORE, ID_ITEM + I.ToString, FSymbolsToIgnore[I]);
726727

727-
IniFile.WriteStringBinary(IS_POSTPROCESS, ID_SCRIPT, FScript);
728-
729728
IniFile.WriteStringBinary(FScript, IS_POSTPROCESS, ID_SCRIPT);
730729

731730
IniFile.UpdateFile;
@@ -774,7 +773,7 @@ procedure TProject.SetCommentConvert(const Value: TCommentConvert);
774773

775774
procedure TProject.SetCustomCTypesMap(const AValue: String);
776775
begin
777-
if (not SameText(FCustomCTypesMap,AValue)) then
776+
if (not SameText(FCustomCTypesMap, AValue)) then
778777
begin
779778
FCustomCTypesMap := AValue;
780779
Modified := True;
@@ -884,6 +883,15 @@ procedure TProject.SetReservedWordHandling(const Value: TReservedWordHandling);
884883
end;
885884
end;
886885

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+
887895
procedure TProject.SetSymbolsToIgnore(const Value: TStrings);
888896
begin
889897
FSymbolsToIgnore.Assign(Value);

0 commit comments

Comments
 (0)