Index: cfgmgr/cfgmgr.c |
— | — | @@ -580,6 +580,8 @@ |
581 | 581 | cfg->DebugNoGLSL130 = ReadBool(hKey, cfg->DebugNoGLSL130, &cfgmask->DebugNoGLSL130, _T("DebugNoGLSL130"));
|
582 | 582 | cfg->DebugMaxGLVersionMajor = ReadDWORD(hKey, cfg->DebugMaxGLVersionMajor, &cfgmask->DebugMaxGLVersionMajor, _T("DebugMaxGLVersionMajor"));
|
583 | 583 | cfg->DebugMaxGLVersionMinor = ReadDWORD(hKey, cfg->DebugMaxGLVersionMinor, &cfgmask->DebugMaxGLVersionMinor, _T("DebugMaxGLVersionMinor"));
|
| 584 | + cfg->HackCrop640480to640400 = ReadBool(hKey, cfg->HackCrop640480to640400, &cfgmask->HackCrop640480to640400, _T("HackCrop640480to640400"));
|
| 585 | + cfg->HackAutoScale512448to640480 = ReadBool(hKey, cfg->HackAutoScale512448to640480, &cfgmask->HackAutoScale512448to640480, _T("HackAutoScale512448to640480"));
|
584 | 586 | if(!global && dll)
|
585 | 587 | {
|
586 | 588 | sizeout = 0;
|
— | — | @@ -716,6 +718,8 @@ |
717 | 719 | WriteBool(hKey, cfg->DebugNoGLSL130, cfgmask->DebugNoGLSL130, _T("DebugNoGLSL130"));
|
718 | 720 | WriteDWORD(hKey, cfg->DebugMaxGLVersionMajor, cfgmask->DebugMaxGLVersionMajor, _T("DebugMaxGLVersionMajor"));
|
719 | 721 | WriteDWORD(hKey, cfg->DebugMaxGLVersionMinor, cfgmask->DebugMaxGLVersionMinor, _T("DebugMaxGLVersionMinor"));
|
| 722 | + WriteBool(hKey, cfg->HackCrop640480to640400, cfgmask->HackCrop640480to640400, _T("HackCrop640480to640400"));
|
| 723 | + WriteBool(hKey, cfg->HackAutoScale512448to640480, cfgmask->HackAutoScale512448to640480, _T("HackAutoScale512448to640480"));
|
720 | 724 | }
|
721 | 725 |
|
722 | 726 | TCHAR newregname[MAX_PATH+65];
|
— | — | @@ -966,6 +970,11 @@ |
967 | 971 | if (!stricmp(name, "DebugMaxGLVersionMajor")) cfg->DebugMaxGLVersionMajor = INIIntValue(value);
|
968 | 972 | if (!stricmp(name, "DebugMaxGLVersionMinor")) cfg->DebugMaxGLVersionMinor = INIIntValue(value);
|
969 | 973 | }
|
| 974 | + if (!stricmp(section, "hacks"))
|
| 975 | + {
|
| 976 | + if (!stricmp(section, "HackCrop640480to640400")) cfg->HackCrop640480to640400 = INIBoolValue(value);
|
| 977 | + if (!stricmp(section, "HackAutoScale512448to640480")) cfg->HackAutoScale512448to640480 = INIBoolValue(value);
|
| 978 | + }
|
970 | 979 | return 1;
|
971 | 980 | }
|
972 | 981 |
|
Index: cfgmgr/cfgmgr.h |
— | — | @@ -78,6 +78,9 @@ |
79 | 79 | BOOL DebugNoGLSL130;
|
80 | 80 | DWORD DebugMaxGLVersionMajor;
|
81 | 81 | DWORD DebugMaxGLVersionMinor;
|
| 82 | + // [hacks]
|
| 83 | + BOOL HackCrop640480to640400;
|
| 84 | + BOOL HackAutoScale512448to640480;
|
82 | 85 | // internal
|
83 | 86 | BOOL Windows8Detected;
|
84 | 87 | BOOL ParsedAddColorDepths;
|
Index: dxglcfg/dxglcfg.cpp |
— | — | @@ -1996,6 +1996,14 @@ |
1997 | 1997 | {
|
1998 | 1998 | switch (item)
|
1999 | 1999 | {
|
| 2000 | + case 0:
|
| 2001 | + *value = cfg->HackCrop640480to640400;
|
| 2002 | + *mask = cfgmask->HackCrop640480to640400;
|
| 2003 | + break;
|
| 2004 | + case 1:
|
| 2005 | + *value = cfg->HackAutoScale512448to640480;
|
| 2006 | + *mask = cfgmask->HackAutoScale512448to640480;
|
| 2007 | + break;
|
2000 | 2008 | default:
|
2001 | 2009 | *value = FALSE;
|
2002 | 2010 | *mask = FALSE;
|
— | — | @@ -2007,6 +2015,14 @@ |
2008 | 2016 | {
|
2009 | 2017 | switch (item)
|
2010 | 2018 | {
|
| 2019 | + case 0:
|
| 2020 | + cfg->HackCrop640480to640400 = value;
|
| 2021 | + cfgmask->HackCrop640480to640400 = mask;
|
| 2022 | + break;
|
| 2023 | + case 1:
|
| 2024 | + cfg->HackAutoScale512448to640480 = value;
|
| 2025 | + cfgmask->HackAutoScale512448to640480 = mask;
|
| 2026 | + break;
|
2011 | 2027 | default:
|
2012 | 2028 | break;
|
2013 | 2029 | }
|