Apply Workaround for Order of Griffon issue

This commit is contained in:
retrowertz 2017-12-02 01:02:15 +08:00
parent e442644e36
commit 236f9bda4e
4 changed files with 13 additions and 0 deletions

View File

@ -220,6 +220,9 @@ static int Load(const char *name, MDFNFILE *fp)
HuCLoad(GET_FDATA_PTR(fp) + headerlen, GET_FSIZE_PTR(fp) - headerlen);
if(crc = 0xfae0fc60)
OrderOfGriffonFix = true;
return(LoadCommon());
}

View File

@ -812,6 +812,14 @@ void VDC_RunFrame(EmulateSpecStruct *espec, bool IsHES)
if(!skip)
{
DisplayRect->x = 0;
// Order of Griffon semi-hack
if (OrderOfGriffonFix)
{
// Force to use specified width to fit status bar inside frame.
defined_width[0] = defined_width[1] = 320;
}
DisplayRect->w = defined_width[vce.dot_clock];
}

View File

@ -31,6 +31,7 @@ int setting_pce_fast_adpcmvolume = 100;
int setting_pce_fast_cdpsgvolume = 100;
uint32_t setting_pce_fast_cdspeed = 1;
std::string setting_pce_fast_cdbios = "syscard3.pce";
bool OrderOfGriffonFix = false;
uint64 MDFN_GetSettingUI(const char *name)
{

View File

@ -13,6 +13,7 @@ extern int setting_pce_fast_adpcmvolume;
extern int setting_pce_fast_cdpsgvolume;
extern uint32_t setting_pce_fast_cdspeed;
extern std::string setting_pce_fast_cdbios;
extern bool OrderOfGriffonFix;
// This should assert() or something if the setting isn't found, since it would
// be a totally tubular error!