@@ -76,7 +76,8 @@ public GamelogicEngineLamp[] AvailableLamps {
7676 private Dictionary < int , GamelogicEngineCoil > _coils = new Dictionary < int , GamelogicEngineCoil > ( ) ;
7777 private Dictionary < int , GamelogicEngineLamp > _lamps = new Dictionary < int , GamelogicEngineLamp > ( ) ;
7878
79- private const string DisplayPrefix = "display" ;
79+ private const string DmdPrefix = "dmd" ;
80+ private const string SegDispPrefix = "display" ;
8081
8182 private bool _isRunning ;
8283 private HashSet < int > _displayAnnounced = new HashSet < int > ( ) ;
@@ -167,7 +168,7 @@ private void UpdateDmd(int index, PinMameDisplayLayout displayLayout, IntPtr fra
167168 lock ( _dispatchQueue ) {
168169 _dispatchQueue . Enqueue ( ( ) =>
169170 OnDisplaysAvailable ? . Invoke ( this , new AvailableDisplays (
170- new DisplayConfig ( $ "{ DisplayPrefix } { index } ", displayLayout . width , displayLayout . height ) ) ) ) ;
171+ new DisplayConfig ( $ "{ DmdPrefix } { index } ", displayLayout . width , displayLayout . height ) ) ) ) ;
171172 }
172173
173174 _displayAnnounced . Add ( index ) ;
@@ -187,7 +188,7 @@ private void UpdateDmd(int index, PinMameDisplayLayout displayLayout, IntPtr fra
187188
188189 lock ( _dispatchQueue ) {
189190 _dispatchQueue . Enqueue ( ( ) => OnDisplayFrame ? . Invoke ( this ,
190- new DisplayFrameData ( $ "{ DisplayPrefix } { index } ", GetDisplayType ( displayLayout . type ) , _frameBuffer [ index ] ) ) ) ;
191+ new DisplayFrameData ( $ "{ DmdPrefix } { index } ", GetDisplayType ( displayLayout . type ) , _frameBuffer [ index ] ) ) ) ;
191192 }
192193 }
193194
@@ -197,20 +198,20 @@ private void UpdateSegDisp(int index, PinMameDisplayLayout displayLayout, IntPtr
197198 lock ( _dispatchQueue ) {
198199 _dispatchQueue . Enqueue ( ( ) =>
199200 OnDisplaysAvailable ? . Invoke ( this , new AvailableDisplays (
200- new DisplayConfig ( $ "{ DisplayPrefix } { index } ", displayLayout . length , 1 ) ) ) ) ;
201+ new DisplayConfig ( $ "{ SegDispPrefix } { index } ", displayLayout . length , 1 ) ) ) ) ;
201202 }
202203
203204 _displayAnnounced . Add ( index ) ;
204205 _frameBuffer [ index ] = new byte [ displayLayout . length * 2 ] ;
205- Logger . Info ( $ "[PinMAME] Display { DisplayPrefix } { index } is of type { displayLayout . type } at { displayLayout . length } wide.") ;
206+ Logger . Info ( $ "[PinMAME] Display { SegDispPrefix } { index } is of type { displayLayout . type } at { displayLayout . length } wide.") ;
206207 }
207208
208209 Marshal . Copy ( framePtr , _frameBuffer [ index ] , 0 , displayLayout . length * 2 ) ;
209210
210211 lock ( _dispatchQueue ) {
211212 //Logger.Info($"[PinMAME] Seg data ({index}): {BitConverter.ToString(_frameBuffer[index])}" );
212213 _dispatchQueue . Enqueue ( ( ) => OnDisplayFrame ? . Invoke ( this ,
213- new DisplayFrameData ( $ "{ DisplayPrefix } { index } ", GetDisplayType ( displayLayout . type ) , _frameBuffer [ index ] ) ) ) ;
214+ new DisplayFrameData ( $ "{ SegDispPrefix } { index } ", GetDisplayType ( displayLayout . type ) , _frameBuffer [ index ] ) ) ) ;
214215 }
215216
216217 }
0 commit comments