Changeset 381 for trunk/Start.pas
- Timestamp:
- Apr 25, 2021, 11:00:24 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Start.pas
r373 r381 1624 1624 f: file; 1625 1625 ok: boolean; 1626 MapPictureFileName: string; 1626 1627 begin 1627 1628 if List.ItemIndex >= 0 then … … 1644 1645 begin 1645 1646 SimpleMessage(Format(Phrases.Lookup('NOFILENAME'), [NewName[i]])); 1646 exit1647 Exit; 1647 1648 end; 1648 1649 if Page = pgLoad then … … 1659 1660 except 1660 1661 // Play('INVALID'); 1661 ok := false 1662 end; 1663 if Page <> pgLoad then 1664 try // rename map picture 1662 ok := False; 1663 end; 1664 if Page <> pgLoad then begin 1665 // Rename map picture 1666 MapPictureFileName := GetMapsDir + DirectorySeparator + 1667 List.Items[List.ItemIndex] + CevoMapPictureExt; 1668 if FileExists(MapPictureFileName) then 1669 try 1665 1670 AssignFile(f, GetMapsDir + DirectorySeparator + List.Items[List.ItemIndex] 1666 + '.png');1667 Rename(f, GetMapsDir + DirectorySeparator + NewName + '.png');1671 + CevoMapPictureExt); 1672 Rename(f, GetMapsDir + DirectorySeparator + NewName + CevoMapPictureExt); 1668 1673 except 1669 1674 end; 1670 if ok then1671 begin1675 end; 1676 if ok then begin 1672 1677 if Page = pgLoad then 1673 1678 FormerGames[List.ItemIndex] := NewName
Note:
See TracChangeset
for help on using the changeset viewer.