File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ presetIndex := $60E
217
217
pausedOutOfDateRenderFlags := $60F ; 0 - statistics 1 - saveslot
218
218
debugLevelEdit := $610
219
219
debugNextCounter := $611
220
+ regionFlag := $612
220
221
221
222
; ... $67F
222
223
musicStagingSq1Lo: = $0680
@@ -502,6 +503,12 @@ initRamContinued:
502
503
jmp @mainLoop
503
504
504
505
checkRegion:
506
+ lda regionFlag
507
+ beq @check
508
+ rts
509
+ @check:
510
+ lda #1
511
+ sta regionFlag
505
512
; region detection via http://forums.nesdev.com/viewtopic.php?p=163258#p163258
506
513
;;; use the power-on wait to detect video system-
507
514
ldx #0
@@ -618,7 +625,6 @@ playState_playerControlsActiveTetrimino:
618
625
rts
619
626
620
627
gameMode_legalScreen: ; boot
621
- jsr checkRegion
622
628
; ABSS goes to gameTypeMenu instead of here
623
629
624
630
; reset cursors (seems to cause problems on misterFPGA)
@@ -674,6 +680,7 @@ gameMode_gameTypeMenu:
674
680
jsr changeCHRBank0
675
681
lda #$00
676
682
jsr changeCHRBank1
683
+ jsr checkRegion
677
684
jsr waitForVBlankAndEnableNmi
678
685
jsr updateAudioWaitForNmiAndResetOamStaging
679
686
jsr updateAudioWaitForNmiAndEnablePpuRendering
You can’t perform that action at this time.
0 commit comments