Skip to content

Commit 447d098

Browse files
authored
Merge branch 'geraldholdsworth:main' into feature/remove-console-mode
2 parents 78bfa60 + 75495d2 commit 447d098

14 files changed

Lines changed: 1668 additions & 704 deletions

Documentation/Changes.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,15 +1071,19 @@ Bug fixes
10711071
* Sometimes, the '.inf' was not appended to the end of extracted file's information files, which then overwrote the original file.
10721072
* A bug had been introduced where the directory icon for the root of a DFS disc was not getting displayed correctly.
10731073

1074-
1.49.1
1074+
1.49.3
10751075
---------------------
10761076
New or improved features
10771077
* Tightened up the hex number detection when parsing *.inf files.
10781078
* Added a preferences option not to use RISC OS styling of the windows and controls, and to use the native OS styling instead.
10791079
* Tightened up the error handling routines when opening data files.
1080+
* Incorporated version 2.9.0 of DSKImage from Damien Guard.
10801081

10811082
Bug fixes
10821083
* In 1.49 the reading of a string from a data file was changed which caused spurious characters to be suffixed to filenames in some images. This was reverted, but may now have broken something else.
1084+
* Zero length files in UEF images could cause the application to hang.
1085+
* When writing to multi-zone ADFS images, the free space map zone checksums were not getting updated correctly.
1086+
* Extracting files to the local system sometimes resulted in double extensions and extra spurious spaces.
10831087

10841088
Platform History
10851089
----------------

LazarusSource/CLICommands.pas

Lines changed: 973 additions & 274 deletions
Large diffs are not rendered by default.

LazarusSource/Comparers.pas

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,24 +70,26 @@ function CompareValues(Value1, Value2: string): integer;
7070
function TryStrToFileBytes(const S: ansistring; out Value: integer): boolean;
7171
var
7272
Parts: array of string;
73+
NumValue: integer;
7374
begin
7475
Result := False;
7576
Parts := S.Split(' ');
7677
if High(Parts) = 1 then
7778
begin
79+
if not TryStrToInt(Parts[0], NumValue) then exit;
7880
if Parts[1] = 'bytes' then
7981
begin
80-
Value := StrToInt(Parts[0]);
82+
Value := NumValue;
8183
Result := True;
8284
end;
8385
if Parts[1] = 'KB' then
8486
begin
85-
Value := StrToInt(Parts[0]) * 1024;
87+
Value := NumValue * 1024;
8688
Result := True;
8789
end;
8890
if Parts[1] = 'MB' then
8991
begin
90-
Value := StrToInt(Parts[0]) * 1024 * 1024;
92+
Value := NumValue * 1024 * 1024;
9193
Result := True;
9294
end;
9395
end;

LazarusSource/DSKFormat.pas

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
unit DSKFormat;
2-
3-
{
4-
Copyright (c) 2002-2025 Damien Guard.
5-
6-
Originally from Disk Image Manager https://github.com/damieng/diskimagemanager
7-
Relicensed for this project under GNU GPL with permission.
8-
9-
This source is free software; you can redistribute it and/or modify it under
10-
the terms of the GNU General Public Licence as published by the Free
11-
Software Foundation; either version 3 of the Licence, or (at your option)
12-
any later version.
13-
14-
This code is distributed in the hope that it will be useful, but WITHOUT ANY
15-
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16-
FOR A PARTICULAR PURPOSE. See the GNU General Public Licence for more
17-
details.
18-
19-
A copy of the GNU General Public Licence is available on the World Wide Web
20-
at <http://www.gnu.org/copyleft/gpl.html>. You can also obtain it by writing
21-
to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
22-
Boston, MA 02110-1335, USA.
1+
unit DSKFormat;
2+
3+
{
4+
Copyright (c) 2002-2025 Damien Guard.
5+
6+
Originally from Disk Image Manager https://github.com/damieng/diskimagemanager
7+
Relicensed for this project under GNU GPL with permission.
8+
9+
This source is free software; you can redistribute it and/or modify it under
10+
the terms of the GNU General Public Licence as published by the Free
11+
Software Foundation; either version 3 of the Licence, or (at your option)
12+
any later version.
13+
14+
This code is distributed in the hope that it will be useful, but WITHOUT ANY
15+
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16+
FOR A PARTICULAR PURPOSE. See the GNU General Public Licence for more
17+
details.
18+
19+
A copy of the GNU General Public Licence is available on the World Wide Web
20+
at <http://www.gnu.org/copyleft/gpl.html>. You can also obtain it by writing
21+
to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
22+
Boston, MA 02110-1335, USA.
2323
}
2424

2525
interface

0 commit comments

Comments
 (0)