Skip to content

Commit

Permalink
- Ensure NTSC-J games are output in NTSC on PAL-M.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Mar 5, 2025
1 parent f8bf81a commit ea46934
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cube/swiss/source/config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ void config_load_current(ConfigEntry *entry) {
swissSettings.disableDithering = entry->disableDithering;
swissSettings.forceAnisotropy = entry->forceAnisotropy;
swissSettings.forceWidescreen = entry->forceWidescreen;
swissSettings.fontEncode = entry->region == 'J';
swissSettings.fontEncode = entry->region == 'J' ? SYS_FONTENC_SJIS : SYS_FONTENC_ANSI;
swissSettings.forcePollRate = entry->forcePollRate;
swissSettings.invertCStick = entry->invertCStick;
swissSettings.swapCStick = entry->swapCStick;
Expand All @@ -1245,7 +1245,7 @@ void config_load_current(ConfigEntry *entry) {
if(entry->region == 'P')
swissSettings.sramVideo = SYS_VIDEO_PAL;
else if((swissSettings.sramVideo == SYS_VIDEO_PAL && !strchr("A?", entry->region)) ||
(swissSettings.sramVideo == SYS_VIDEO_MPAL && getDTVStatus()))
(swissSettings.sramVideo == SYS_VIDEO_MPAL && (swissSettings.fontEncode == SYS_FONTENC_SJIS || getDTVStatus())))
swissSettings.sramVideo = SYS_VIDEO_NTSC;

if(swissSettings.gameVMode > 0 && swissSettings.disableVideoPatches < 2) {
Expand Down
2 changes: 1 addition & 1 deletion cube/swiss/source/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int getDTVStatus() {

int getFontEncode() {
volatile unsigned short* vireg = (volatile unsigned short*)0xCC002000;
return (vireg[55] >> 1) & 1;
return (vireg[55] >> 1) & 1 ? SYS_FONTENC_SJIS : SYS_FONTENC_ANSI;
}

f32 getYScaleFactor(u16 efbHeight, u16 xfbHeight) {
Expand Down

0 comments on commit ea46934

Please sign in to comment.