Skip to content

Commit 6711bb9

Browse files
committed
Update to 2.3.57 / 2.4.24 source package.
1 parent 846ec56 commit 6711bb9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+17363
-14235
lines changed

adt2data.pas

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
// This file is part of Adlib Tracker II (AT2).
2+
//
3+
// AT2 is free software: you can redistribute it and/or modify
4+
// it under the terms of the GNU General Public License as published by
5+
// the Free Software Foundation, either version 3 of the License, or
6+
// (at your option) any later version.
7+
//
8+
// AT2 is distributed in the hope that it will be useful,
9+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
// GNU General Public License for more details.
12+
//
13+
// You should have received a copy of the GNU General Public License
14+
// along with AT2. If not, see <http://www.gnu.org/licenses/>.
15+
116
unit AdT2data;
217
{$S-,Q-,R-,V-,B-,X+}
318
{$PACKRECORDS 1}

adt2ext2.pas

+69-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
// This file is part of Adlib Tracker II (AT2).
2+
//
3+
// AT2 is free software: you can redistribute it and/or modify
4+
// it under the terms of the GNU General Public License as published by
5+
// the Free Software Foundation, either version 3 of the License, or
6+
// (at your option) any later version.
7+
//
8+
// AT2 is distributed in the hope that it will be useful,
9+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
// GNU General Public License for more details.
12+
//
13+
// You should have received a copy of the GNU General Public License
14+
// along with AT2. If not, see <http://www.gnu.org/licenses/>.
15+
116
unit AdT2ext2;
217
{$S-,Q-,R-,V-,B-,X+}
318
{$PACKRECORDS 1}
@@ -60,6 +75,7 @@ implementation
6075
{$ELSE}
6176
SDL_Timer,
6277
{$ENDIF}
78+
StrUtils,
6379
AdT2opl3,AdT2unit,AdT2sys,AdT2extn,AdT2ext4,AdT2ext5,AdT2text,AdT2pack,AdT2keyb,
6480
TxtScrIO,StringIO,DialogIO,ParserIO;
6581

@@ -371,6 +387,42 @@ procedure process_global_keys;
371387
end;
372388
end;
373389

390+
If ctrl_pressed and NOT alt_pressed and NOT scankey(SC_TAB) and
391+
(scankey(SC_UP) or scankey(SC_DOWN)) then
392+
begin
393+
If scankey(SC_UP) and scankey(SC_DOWN) then
394+
begin
395+
_IRQ_freq_shift_reset_flag := TRUE;
396+
If NOT shift_pressed then
397+
IRQ_freq_shift := songdata.bpm_data.tempo_finetune
398+
else IRQ_freq_shift := 0
399+
end
400+
else If scankey(SC_UP) and NOT scankey(SC_DOWN) and
401+
(SUCC(IRQ_freq+IRQ_freq_shift+playback_speed_shift) <= MAX_IRQ_FREQ) then
402+
If (NOT shift_pressed or (shift_pressed and NOT (_IRQFREQ_blink_flag and (_IRQFREQ_blink_ticks < 5)))) and
403+
NOT (_IRQ_freq_shift_reset_flag and _IRQFREQ_blink_flag and (_IRQFREQ_blink_ticks < 5)) then
404+
begin
405+
Inc(IRQ_freq_shift);
406+
_IRQ_freq_shift_reset_flag := FALSE;
407+
end
408+
else
409+
else If NOT scankey(SC_UP) and scankey(SC_DOWN) and
410+
(PRED(IRQ_freq+IRQ_freq_shift+playback_speed_shift) >= MIN_IRQ_FREQ) then
411+
If (NOT shift_pressed or (shift_pressed and NOT (_IRQFREQ_blink_flag and (_IRQFREQ_blink_ticks < 5)))) and
412+
NOT (_IRQ_freq_shift_reset_flag and _IRQFREQ_blink_flag and (_IRQFREQ_blink_ticks < 5)) then
413+
begin
414+
Dec(IRQ_freq_shift);
415+
_IRQ_freq_shift_reset_flag := FALSE;
416+
end;
417+
If (songdata.bpm_data.tempo_finetune <> IRQ_freq_shift) then
418+
module_archived := FALSE;
419+
_IRQFREQ_update_event := TRUE;
420+
_IRQFREQ_blink_flag := TRUE;
421+
_IRQFREQ_blink_ticks := 0;
422+
TimerSetup(IRQ_freq+IRQ_freq_shift+playback_speed_shift);
423+
keyboard_reset_buffer;
424+
end;
425+
374426
{$IFNDEF GO32V2}
375427

376428
If scankey(SC_F11) and
@@ -510,6 +562,7 @@ procedure PROGRAM_SCREEN_init;
510562
ShowCStr(screen_ptr,03,04,'~ROW ~',
511563
status_background+status_dynamic_txt,
512564
status_background+status_static_txt);
565+
513566
ShowCStr(screen_ptr,03,05,'~SPEED/TEMPO ~ /',
514567
status_background+status_dynamic_txt,
515568
status_background+status_static_txt);
@@ -559,7 +612,8 @@ function check_number(str: String; base: Byte; limit1,limit2: Longint; default:
559612
temp2 := temp2 DIV 10;
560613
end;
561614

562-
If SameName(str+'='+ExpStrL('',temp,'?'),data) and (Length(data) < Length(str)+temp+2) then
615+
If IsWild(data,str+'=*',FALSE) and
616+
(Length(data) >= Length(str)+2) and (Length(data) < Length(str)+temp+2) then
563617
begin
564618
result := Str2num(Copy(data,Length(str)+2,temp),base);
565619
If (result >= limit1) and (result <= limit2) then
@@ -594,7 +648,8 @@ function validate_number(var num: Longint; str: String; base: Byte; limit1,limit
594648
temp2 := temp2 DIV 10;
595649
end;
596650

597-
If SameName(str+'='+ExpStrL('',temp,'?'),data) and (Length(data) < Length(str)+temp+2) then
651+
If IsWild(data,str+'=*',FALSE) and
652+
(Length(data) >= Length(str)+2) and (Length(data) < Length(str)+temp+2) then
598653
begin
599654
num := Str2num(Copy(data,Length(str)+2,temp),base);
600655
If (num >= limit1) and (num <= limit2) then
@@ -616,7 +671,7 @@ function check_range(str: String; base: Byte; range: tRANGE; default: Byte): Byt
616671

617672
begin
618673
result := default;
619-
If SameName(str+'='+ExpStrL('',3,'?'),data) and
674+
If IsWild(data,str+'='+ExpStrL('',3,'?'),FALSE) and
620675
(Length(data) < Length(str)+5) then
621676
If (Str2num(Copy(data,Length(str)+2,3),base) in range) then
622677
result := Str2num(Copy(data,Length(str)+2,3),base);
@@ -634,7 +689,7 @@ function check_boolean(str: String; default: Boolean): Boolean;
634689
_debug_str_ := 'ADT2EXT2.PAS:process_config_file:check_boolean';
635690
{$ENDIF}
636691
result := default;
637-
If SameName(str+'=???',data) and
692+
If IsWild(data,str+'=???',FALSE) and
638693
(Length(data) < Length(str)+5) then
639694
begin
640695
If (Copy(data,Length(str)+2,3) = 'on') then result := TRUE;
@@ -653,7 +708,7 @@ procedure check_rgb(str: String; var default: tRGB);
653708
_last_debug_str_ := _debug_str_;
654709
_debug_str_ := 'ADT2EXT2.PAS:process_config_file:check_rgb';
655710
{$ENDIF}
656-
If SameName(str+'=??,??,??',data) and
711+
If IsWild(data,str+'=??,??,??',FALSE) and
657712
(Length(data) < Length(str)+10) then
658713
begin
659714
result.r := Str2num(Copy(data,Length(str)+2,2),10);
@@ -888,6 +943,9 @@ procedure check_option_data;
888943
linefeed :=
889944
check_boolean('linefeed',linefeed);
890945

946+
lf_in_mboard_mode :=
947+
check_boolean('lf_in_mboard_mode',lf_in_mboard_mode);
948+
891949
update_ins :=
892950
check_boolean('update_ins',update_ins);
893951

@@ -1182,6 +1240,9 @@ procedure check_option_data;
11821240
debug_info_perc :=
11831241
check_number('debug_info_perc',10,0,15,debug_info_perc);
11841242

1243+
debug_info_bpm :=
1244+
check_number('debug_info_bpm',10,0,15,debug_info_bpm);
1245+
11851246
help_background :=
11861247
check_number('help_background',10,0,15,help_background SHR 4) SHL 4;
11871248

@@ -1281,6 +1342,9 @@ procedure check_option_data;
12811342
dialog_car_text :=
12821343
check_number('dialog_car_text',10,0,15,dialog_car_text);
12831344

1345+
dialog_misc_indic :=
1346+
check_number('dialog_misc_indic',10,0,15,dialog_misc_indic);
1347+
12841348
macro_background :=
12851349
check_number('macro_background',10,0,15,macro_background SHR 4) SHL 4;
12861350

adt2ext3.pas

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
// This file is part of Adlib Tracker II (AT2).
2+
//
3+
// AT2 is free software: you can redistribute it and/or modify
4+
// it under the terms of the GNU General Public License as published by
5+
// the Free Software Foundation, either version 3 of the License, or
6+
// (at your option) any later version.
7+
//
8+
// AT2 is distributed in the hope that it will be useful,
9+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
// GNU General Public License for more details.
12+
//
13+
// You should have received a copy of the GNU General Public License
14+
// along with AT2. If not, see <http://www.gnu.org/licenses/>.
15+
116
unit AdT2ext3;
217
{$S-,Q-,R-,V-,B-,X+}
318
{$PACKRECORDS 1}

0 commit comments

Comments
 (0)