Skip to content

Commit

Permalink
- Avoid PAL-M when using digital AV.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Sep 7, 2020
1 parent d46fd2a commit f585096
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion cube/swiss/source/main.c
Expand Up @@ -62,7 +62,7 @@ void Initialise (void)
if(VIDEO_HaveComponentCable() && !(PAD_ButtonsDown(0) & PAD_TRIGGER_L)) {
if(strstr(IPLInfo,"MPAL")!=NULL) {
swissSettings.sramVideo = 2;
vmode = &TVMpal480Prog; //Progressive 480p
vmode = &TVNtsc480Prog; //Progressive 480p
}
else if((strstr(IPLInfo,"PAL")!=NULL)) {
swissSettings.sramVideo = 1;
Expand Down
8 changes: 2 additions & 6 deletions cube/swiss/source/swiss.c
Expand Up @@ -146,12 +146,8 @@ void ogc_video__reset()
uiDrawObj_t *msgBox = NULL;
switch(swissSettings.gameVMode) {
case -1:
if(swissSettings.sramVideo == 2) {
if(swissSettings.sramProgressive && !getDTVStatus())
msgBox = DrawMessageBox(D_WARN, "Video Mode: PAL-M 480i\nComponent Cable not detected.");
else
msgBox = DrawMessageBox(D_INFO, "Video Mode: PAL-M 480i");

if(swissSettings.sramVideo == 2 && !getDTVStatus()) {
msgBox = DrawMessageBox(D_INFO, "Video Mode: PAL-M 480i");
newmode = &TVMpal480IntDf;
} else {
if(swissSettings.sramProgressive && !getDTVStatus())
Expand Down
18 changes: 9 additions & 9 deletions cube/swiss/source/video.c
Expand Up @@ -56,18 +56,18 @@ int getDTVStatus() {
GXRModeObj *getVideoModeFromSwissSetting(int uiVMode) {
switch(uiVMode) {
case 1:
switch(swissSettings.sramVideo) {
case 2: return &TVMpal480IntDf;
case 1: return &TVEurgb60Hz480IntDf;
default: return &TVNtsc480IntDf;
}
case 2:
if(getDTVStatus()) {
return &TVNtsc480IntDf;
} else {
switch(swissSettings.sramVideo) {
case 2: return &TVMpal480Prog;
case 1: return &TVEurgb60Hz480Prog;
default: return &TVNtsc480Prog;
case 2: return &TVMpal480IntDf;
case 1: return &TVEurgb60Hz480IntDf;
default: return &TVNtsc480IntDf;
}
}
case 2:
if(getDTVStatus()) {
return &TVNtsc480Prog;
} else {
switch(swissSettings.sramVideo) {
case 2: return &TVMpal480IntDf;
Expand Down

0 comments on commit f585096

Please sign in to comment.