Changeset 50 for trunk/IDE/UProject.pas
- Timestamp:
- Apr 5, 2012, 2:03:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/UProject.pas
r49 r50 83 83 Packages: TProjectPackageList; 84 84 BuildConfigs: TProjectBuildConfigList; 85 MainSource: TProjectFile; 85 86 procedure LoadFromFile(FileName: string); 86 87 procedure SaveToFile(FileName: string); … … 343 344 I: Integer; 344 345 Text: string; 346 MainSourceName: string; 345 347 begin 346 348 try … … 352 354 if Assigned(NewNode) then 353 355 Files.LoadFromXMLNode(NewNode); 356 357 NewNode := Doc.DocumentElement.FindNode('MainSource'); 358 if Assigned(NewNode) then begin 359 MainSourceName := UTF8Encode(NewNode.TextSource); 360 361 end; 362 354 363 NewNode := Doc.DocumentElement.FindNode('Packages'); 355 364 if Assigned(NewNode) then … … 375 384 AppendChild(RootNode); 376 385 with RootNode do begin 386 NewNode := CreateElement('MainSource'); 387 NewNode.TextContent := UTF8Decode(MainSource.FileName); 388 AppendChild(NewNode); 389 377 390 NewNode := CreateElement('Files'); 378 391 Files.SaveToXMLNode(NewNode);
Note:
See TracChangeset
for help on using the changeset viewer.