Changeset 405 for branches/highdpi/Start.pas
- Timestamp:
- Nov 3, 2021, 11:22:02 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Start.pas
r378 r405 428 428 Free; 429 429 end; 430 431 KeyBindings.LoadFromRegistry(HKEY_CURRENT_USER, AppRegistryKey + '\KeyBindings'); 430 432 end; 431 433 … … 450 452 Free; 451 453 end; 454 455 KeyBindings.SaveToRegistry(HKEY_CURRENT_USER, AppRegistryKey + '\KeyBindings'); 452 456 end; 453 457 … … 1624 1628 f: file; 1625 1629 ok: boolean; 1630 MapPictureFileName: string; 1626 1631 begin 1627 1632 if List.ItemIndex >= 0 then … … 1644 1649 begin 1645 1650 SimpleMessage(Format(Phrases.Lookup('NOFILENAME'), [NewName[i]])); 1646 exit1651 Exit; 1647 1652 end; 1648 1653 if Page = pgLoad then … … 1659 1664 except 1660 1665 // Play('INVALID'); 1661 ok := false 1662 end; 1663 if Page <> pgLoad then 1664 try // rename map picture 1666 ok := False; 1667 end; 1668 if Page <> pgLoad then begin 1669 // Rename map picture 1670 MapPictureFileName := GetMapsDir + DirectorySeparator + 1671 List.Items[List.ItemIndex] + CevoMapPictureExt; 1672 if FileExists(MapPictureFileName) then 1673 try 1665 1674 AssignFile(f, GetMapsDir + DirectorySeparator + List.Items[List.ItemIndex] 1666 + '.png');1667 Rename(f, GetMapsDir + DirectorySeparator + NewName + '.png');1675 + CevoMapPictureExt); 1676 Rename(f, GetMapsDir + DirectorySeparator + NewName + CevoMapPictureExt); 1668 1677 except 1669 1678 end; 1670 if ok then1671 begin1679 end; 1680 if ok then begin 1672 1681 if Page = pgLoad then 1673 1682 FormerGames[List.ItemIndex] := NewName
Note:
See TracChangeset
for help on using the changeset viewer.