@@ -417,8 +417,6 @@ export class LazerMemory extends AbstractMemory<LazerPatternData> {
417
417
}
418
418
419
419
private readStatisticsDict ( statisticsDict : number ) {
420
- const statisticsCount = this . process . readInt ( statisticsDict + 0x38 ) ;
421
-
422
420
const statistics : Statistics = {
423
421
miss : 0 ,
424
422
meh : 0 ,
@@ -439,6 +437,12 @@ export class LazerMemory extends AbstractMemory<LazerPatternData> {
439
437
legacyComboIncrease : 0
440
438
} ;
441
439
440
+ if ( ! statisticsDict ) {
441
+ return statistics ;
442
+ }
443
+
444
+ const statisticsCount = this . process . readInt ( statisticsDict + 0x38 ) ;
445
+
442
446
const statisticsEntries = this . process . readIntPtr (
443
447
statisticsDict + 0x10
444
448
) ;
@@ -813,23 +817,23 @@ export class LazerMemory extends AbstractMemory<LazerPatternData> {
813
817
throw new Error ( 'Lazer:settingsPointers not implemented.' ) ;
814
818
}
815
819
816
- configOffsets ( address : number , list : ConfigList ) : IOffsets {
820
+ configOffsets ( _address : number , _list : ConfigList ) : IOffsets {
817
821
throw new Error ( 'Lazer:configOffsets not implemented.' ) ;
818
822
}
819
823
820
- bindingsOffsets ( address : number , list : BindingsList ) : IOffsets {
824
+ bindingsOffsets ( _address : number , _list : BindingsList ) : IOffsets {
821
825
throw new Error ( 'Lazer:bindingsOffsets not implemented.' ) ;
822
826
}
823
827
824
828
configValue (
825
- address : number ,
826
- position : number ,
827
- list : ConfigList
829
+ _address : number ,
830
+ _position : number ,
831
+ _list : ConfigList
828
832
) : IConfigValue {
829
833
throw new Error ( 'Lazer:configValue not implemented.' ) ;
830
834
}
831
835
832
- bindingValue ( address : number , position : number ) : IBindingValue {
836
+ bindingValue ( _address : number , _position : number ) : IBindingValue {
833
837
throw new Error ( 'Lazer:bindingValue not implemented.' ) ;
834
838
}
835
839
@@ -1859,7 +1863,7 @@ export class LazerMemory extends AbstractMemory<LazerPatternData> {
1859
1863
throw new Error ( 'Lazer:tourney not implemented.' ) ;
1860
1864
}
1861
1865
1862
- tourneyChat ( messages : ITourneyManagerChatItem [ ] ) : ITourneyChat {
1866
+ tourneyChat ( _messages : ITourneyManagerChatItem [ ] ) : ITourneyChat {
1863
1867
throw new Error ( 'Lazer:tourneyChat not implemented.' ) ;
1864
1868
}
1865
1869
0 commit comments