From eb0b3e68dec2d3bc1827580d0d56daafad94aca9 Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Wed, 2 May 2012 16:08:22 +0000 Subject: [PATCH] -added force progressive patch to dml games, just set the game to PAL480p/NTSC480p to enable it, only works with dml v1.3 or newer. --- source/gc/gc.c | 14 +++----------- source/gc/gc.h | 2 +- source/menu/menu_game.cpp | 2 +- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/source/gc/gc.c b/source/gc/gc.c index 56c76d9b..88677473 100644 --- a/source/gc/gc.c +++ b/source/gc/gc.c @@ -145,7 +145,7 @@ int GC_GameIsInstalled(char *discid, const char* partition, const char* dmlgamed return 0; } -void DML_New_SetOptions(char *GamePath, char *CheatPath, char *NewCheatPath, bool cheats, bool debugger, u8 NMM, u8 nodisc) //, u8 DMLvideoMode) +void DML_New_SetOptions(char *GamePath, char *CheatPath, char *NewCheatPath, bool cheats, bool debugger, u8 NMM, u8 nodisc, u8 DMLvideoMode) { gprintf("Wiiflow DML: Launch game 'sd:/games/%s/game.iso' through memory (new method)\n", GamePath); @@ -194,16 +194,8 @@ void DML_New_SetOptions(char *GamePath, char *CheatPath, char *NewCheatPath, boo if(nodisc > 0) DMLCfg->Config |= DML_CFG_NODISC; - /* - if(DMLvideoMode == 1) - DMLCfg->VideoMode |= DML_VID_FORCE_PAL50; - else if(DMLvideoMode == 2) - DMLCfg->VideoMode |= DML_VID_FORCE_NTSC; - else if(DMLvideoMode == 3) - DMLCfg->VideoMode |= DML_VID_FORCE_PAL60; - else - DMLCfg->VideoMode |= DML_VID_FORCE_PROG; - */ + if(DMLvideoMode > 3) + DMLCfg->VideoMode |= DML_VID_PROG_PATCH; //Write options into memory memcpy((void *)0xC0001700, DMLCfg, sizeof(DML_CFG)); diff --git a/source/gc/gc.h b/source/gc/gc.h index cc5dfcd0..864266fc 100644 --- a/source/gc/gc.h +++ b/source/gc/gc.h @@ -48,7 +48,7 @@ enum dmlvideomode void GC_SetVideoMode(u8 videomode); void GC_SetLanguage(u8 lang); int GC_GameIsInstalled(char *discid, const char* partition, const char* dmlgamedir); -void DML_New_SetOptions(char *GamePath, char *CheatPath, char *NewCheatPath, bool cheats, bool debugger, u8 NMM, u8 nodisc); //, u8 DMLvideoMode); +void DML_New_SetOptions(char *GamePath, char *CheatPath, char *NewCheatPath, bool cheats, bool debugger, u8 NMM, u8 nodisc, u8 DMLvideoMode); void DML_Old_SetOptions(char *GamePath, char *CheatPath, char *NewCheatPath, bool cheats); void DML_New_SetBootDiscOption(); #endif //GC_H_ diff --git a/source/menu/menu_game.cpp b/source/menu/menu_game.cpp index 4f7ffd61..c690733e 100644 --- a/source/menu/menu_game.cpp +++ b/source/menu/menu_game.cpp @@ -731,7 +731,7 @@ void CMenu::_launchGC(dir_discHdr *hdr, bool DML) } if(m_new_dml) - DML_New_SetOptions(hdr->path, CheatPath, NewCheatPath, cheats, DML_debug, NMM, nodisc); //, DMLvideoMode); + DML_New_SetOptions(hdr->path, CheatPath, NewCheatPath, cheats, DML_debug, NMM, nodisc, DMLvideoMode); else DML_Old_SetOptions(hdr->path, CheatPath, NewCheatPath, cheats);