Skip to content

Commit

Permalink
fix saving autogenerated trainer form
Browse files Browse the repository at this point in the history
  • Loading branch information
cheat-engine committed May 9, 2021
1 parent e87115e commit bb56f14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Cheat Engine/ceguicomponents.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,11 @@ procedure TCEForm.SaveToXML(Node: TDOMNode; dontdeactivate: boolean=false);
if active then active:=false;
end;

if saveddesign=nil then exit; //nothing to save
if saveddesign=nil then
SaveCurrentStateasDesign;

if saveddesign=nil then
exit; //give up

//for now use a binarystream instead of xml. the xmlwriter/reader does not support stringlists
//create a stream for storage
Expand Down

0 comments on commit bb56f14

Please sign in to comment.