Skip to content

Commit baf7514

Browse files
committed
v1.7.8
1 parent 7e0a401 commit baf7514

6 files changed

Lines changed: 29 additions & 42 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Changelog
22
All notable changes to this project are documented in this file.
33

4+
## [1.7.7] – 2026-04-08
5+
6+
### ✨ Improvements
7+
8+
*Removed checkbox to optionally ignore the MBR signature, no need anymore
9+
10+
411
## [1.7.7] – 2026-04-08
512

613
### Bugfix

source/pibackup

-96 Bytes
Binary file not shown.

source/pibackup.ctps

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
<IsPartOfProject Value="True"/>
1111
<EditorIndex Value="3"/>
1212
<WindowIndex Value="0"/>
13-
<TopLine Value="19"/>
14-
<CursorPos X="28" Y="36"/>
13+
<CursorPos X="45" Y="6"/>
1514
<UsageCount Value="201"/>
1615
<Loaded Value="True"/>
1716
</Unit>
@@ -26,8 +25,8 @@
2625
<IsVisibleTab Value="True"/>
2726
<EditorIndex Value="0"/>
2827
<WindowIndex Value="0"/>
29-
<TopLine Value="100"/>
30-
<CursorPos X="31" Y="103"/>
28+
<TopLine Value="99"/>
29+
<CursorPos X="27" Y="107"/>
3130
<UsageCount Value="201"/>
3231
<Loaded Value="True"/>
3332
<LoadedDesigner Value="True"/>
@@ -38,7 +37,6 @@
3837
<UnitName Value="ExcludeParser"/>
3938
<EditorIndex Value="1"/>
4039
<WindowIndex Value="0"/>
41-
<TopLine Value="37"/>
4240
<CursorPos X="32" Y="47"/>
4341
<UsageCount Value="201"/>
4442
<Loaded Value="True"/>
@@ -48,8 +46,8 @@
4846
<IsPartOfProject Value="True"/>
4947
<EditorIndex Value="5"/>
5048
<WindowIndex Value="0"/>
51-
<TopLine Value="1118"/>
52-
<CursorPos X="70" Y="1131"/>
49+
<TopLine Value="601"/>
50+
<CursorPos X="49" Y="1172"/>
5351
<UsageCount Value="203"/>
5452
<Loaded Value="True"/>
5553
</Unit>
@@ -347,14 +345,6 @@
347345
</Unit>
348346
</Units>
349347
<JumpHistory HistoryIndex="29">
350-
<Position>
351-
<Filename Value="rkutils.pas"/>
352-
<Caret Line="1124" Column="109" TopLine="1112"/>
353-
</Position>
354-
<Position>
355-
<Filename Value="rkutils.pas"/>
356-
<Caret Line="1126" Column="79" TopLine="1114"/>
357-
</Position>
358348
<Position>
359349
<Filename Value="rkutils.pas"/>
360350
<Caret Line="1129" Column="19" TopLine="1117"/>
@@ -467,6 +457,14 @@
467457
<Filename Value="rkutils.pas"/>
468458
<Caret Line="361" Column="11" TopLine="355"/>
469459
</Position>
460+
<Position>
461+
<Filename Value="unit1.pas"/>
462+
<Caret Line="286" Column="50" TopLine="278"/>
463+
</Position>
464+
<Position>
465+
<Filename Value="unit1.pas"/>
466+
<Caret Line="285" Column="50" TopLine="277"/>
467+
</Position>
470468
</JumpHistory>
471469
<RunParams>
472470
<FormatVersion Value="2"/>
@@ -487,14 +485,14 @@
487485
<WatchScope Value="wpsLocal"/>
488486
<WatchKind Value="wpkWrite"/>
489487
<Source Value="rkutils.pas"/>
490-
<Line Value="1587"/>
488+
<Line Value="1578"/>
491489
</Item>
492490
<Item>
493491
<Kind Value="bpkSource"/>
494492
<WatchScope Value="wpsLocal"/>
495493
<WatchKind Value="wpkWrite"/>
496494
<Source Value="rkutils.pas"/>
497-
<Line Value="1585"/>
495+
<Line Value="1576"/>
498496
</Item>
499497
</BreakPoints>
500498
</Debugging>

source/rkutils.pas

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,11 +1115,8 @@ function Read_Mbr(const filename: string): tmbr;
11151115
F.Position := 0;
11161116
Bytesread := F.Read(Rmbr, 512);
11171117
if bytesread <> 512 then raise Exception.Create('error reading MBR: ' + filename);
1118-
if (RMbr.Signature <> $aa55) and (Form1.CBinvalidMbr.Checked = False) then
1119-
begin
1120-
listboxaddscroll(form1.listbox1, 'reading mbr - wrong mbr signature: ' + filename + ' = 0x' + hexstr(RMbr.Signature, 4) + ' instead of 0xaa55.');
1121-
raise Exception.Create('You can enable the checkbox "igmore invalid MBR signature" and try again');
1122-
end;
1118+
if (RMbr.Signature <> $aa55) then
1119+
raise Exception.Create( 'reading mbr - wrong mbr signature: ' + filename + ' = 0x' + hexstr(RMbr.Signature, 4) + ' instead of 0xaa55.');
11231120
finally
11241121
if assigned(F) then F.Free;
11251122
end;
@@ -1147,11 +1144,8 @@ function Read_Mbr(const filename: string): tmbr;
11471144
F.Position := 0;
11481145
Bytesread := F.Read(Rmbr, 512);
11491146
if bytesread <> 512 then raise Exception.Create('reading mbr - error reading file: ' + filename);
1150-
if (RMbr.Signature <> $aa55) and (Form1.CBinvalidMbr.Checked = False) then
1151-
begin
1152-
listboxaddscroll(form1.listbox1, 'reading mbr - wrong mbr signature: ' + filename + ' = 0x' + hexstr(RMbr.Signature, 4) + ' instead of 0xaa55.');
1153-
raise Exception.Create('You can enable the checkbox "igmore invalid MBR signature" and try again');
1154-
end;
1147+
if (RMbr.Signature <> $aa55) then
1148+
raise Exception.Create( 'reading mbr - wrong mbr signature: ' + filename + ' = 0x' + hexstr(RMbr.Signature, 4) + ' instead of 0xaa55.');
11551149
Result := Rmbr;
11561150
finally
11571151
if assigned(F) then F.Free;
@@ -1168,11 +1162,8 @@ function Read_Mbr(const filename: string): tmbr;
11681162
Proc.Execute;
11691163
BytesRead := Proc.Output.Read(RMbr, 512);
11701164
if bytesread <> 512 then raise Exception.Create('reading mbr - error reading file: ' + filename);
1171-
if (RMbr.Signature <> $aa55) and (Form1.CBinvalidMbr.Checked = False) then
1172-
begin
1173-
listboxaddscroll(form1.listbox1, 'reading mbr - wrong mbr signature: ' + filename + ' = 0x' + hexstr(RMbr.Signature, 4) + ' instead of 0xaa55.');
1174-
raise Exception.Create('You can enable the checkbox "igmore invalid MBR signature" and try again');
1175-
end;
1165+
if (RMbr.Signature <> $aa55) then
1166+
raise Exception.Create( 'reading mbr - wrong mbr signature: ' + filename + ' = 0x' + hexstr(RMbr.Signature, 4) + ' instead of 0xaa55.');
11761167
Result := Rmbr;
11771168
finally
11781169
Proc.Free;

source/unit1.frm

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,6 @@ object Form1: TForm1
271271
State = cbChecked
272272
TabOrder = 8
273273
end
274-
object CBinvalidMbr: TCheckBox
275-
Left = 15
276-
Height = 21
277-
Top = 76
278-
Width = 198
279-
Caption = 'ignore invalid MBR signature'
280-
TabOrder = 9
281-
end
282274
end
283275
object Panel2: TPanel
284276
AnchorSideLeft.Control = StringGrid1

source/unit1.pas

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ TForm1 = class(TForm)
3434
ButtonCreateImage: TButton;
3535
ButtonWriteImagetodevice: TButton;
3636
CheckBox1: TCheckBox;
37-
CBinvalidMbr: TCheckBox;
3837
EDhost: TEdit;
3938
EDuserpassword: TEdit;
4039
edit_wlanssid: TEdit;
@@ -100,7 +99,7 @@ TForm1 = class(TForm)
10099
const
101100
p2mpoint = '/pi_images/p2_pibackup_img';
102101
p1mpoint = '/pi_images/p1_pibackup_img';
103-
appname = 'PiBackup v1.7.7';
102+
appname = 'PiBackup v1.7.8';
104103
ininame = '/etc/pibackup/pibackup.ini';
105104

106105

0 commit comments

Comments
 (0)