Changeset 116 for trunk/Forms/UFormMain.pas
- Timestamp:
- Aug 18, 2021, 5:50:18 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r115 r116 171 171 UCore, UFormCPU, UFormOptions, UFormMessages, UFormTargets, UFormOutput, UFormInput, 172 172 UFormMemory, UFormSourceCode, UFormTargetCode, UTargetInterpretter, UFormLog, 173 UBFTarget ;173 UBFTarget, UCommon; 174 174 175 175 resourcestring … … 613 613 AProjectClose.Execute; 614 614 if Core.Project.Openned then Exit; 615 Core.Project.FileName := 'Examples' + DirectorySeparator + SNewProject + '.b';615 Core.Project.FileName := CombinePaths(Core.DataDir, 'Examples' + DirectorySeparator + SNewProject + '.b'); 616 616 FormSourceCode.SynEditSource.Clear; 617 617 Core.Project.Openned := True; … … 631 631 if Core.LastOpenedList.Items.Count > 0 then 632 632 OpenDialog1.FileName := Core.LastOpenedList.Items[0] 633 else OpenDialog1.FileName := ExtractFileDir(Application.ExeName) + DirectorySeparator + 'Examples';633 else OpenDialog1.FileName := CombinePaths(Core.DataDir, 'Examples'); 634 634 OpenDialog1.InitialDir := ExtractFileDir(OpenDialog1.FileName); 635 635 if OpenDialog1.Execute then begin
Note:
See TracChangeset
for help on using the changeset viewer.