-
Notifications
You must be signed in to change notification settings - Fork 2
/
tzxblock25.inc
46 lines (35 loc) · 954 Bytes
/
tzxblock25.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2022-2024 Zoran Vučenović
// SPDX-License-Identifier: Apache-2.0
{$ifdef tzx_header_section}
TTzxBlock25 = class (TTzxBlock)
protected
function CheckLoopEnd: Boolean; override;
public
class function GetBlockId: DWord; override;
{returns whole block length, without id byte}
function GetBlockLength: Integer; override;
function LoadBlock(const {%H-}Stream: TStream): Boolean; override;
class function GetBlockDescription: String; override;
end;
{$else}
function TTzxBlock25.CheckLoopEnd: Boolean;
begin
Result := True;
end;
class function {TTzxPlayer.}TTzxBlock25.GetBlockId: DWord;
begin
Result := $25;
end;
function {TTzxPlayer.}TTzxBlock25.GetBlockLength: Integer;
begin
Result := 0;
end;
function {TTzxPlayer.}TTzxBlock25.LoadBlock(const Stream: TStream): Boolean;
begin
Result := True;
end;
class function {TTzxPlayer.}TTzxBlock25.GetBlockDescription: String;
begin
Result := 'Loop end';
end;
{$endif}