diff options
| author | iCatButler <i.am.catbutler@gmail.com> | 2019-03-02 09:54:07 +0000 |
|---|---|---|
| committer | iCatButler <i.am.catbutler@gmail.com> | 2019-03-02 09:54:07 +0000 |
| commit | d7a90b433451f04476b35575ef58bfd08542affb (patch) | |
| tree | 86b92ba5fa80887cf5f18b8a2d9b27db6e464e51 /win32/plugins/peopsxgl/winsrc | |
| parent | cd685f7b75b8c7165642bd45044481ec5b27bc04 (diff) | |
| download | pcsxr-d7a90b433451f04476b35575ef58bfd08542affb.tar.gz | |
Add support for GL Extensions to Windows GPU plugin
Diffstat (limited to 'win32/plugins/peopsxgl/winsrc')
| -rw-r--r-- | win32/plugins/peopsxgl/winsrc/cfg.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/win32/plugins/peopsxgl/winsrc/cfg.c b/win32/plugins/peopsxgl/winsrc/cfg.c index 37f8139f..68935fe6 100644 --- a/win32/plugins/peopsxgl/winsrc/cfg.c +++ b/win32/plugins/peopsxgl/winsrc/cfg.c @@ -179,6 +179,7 @@ BOOL OnInitCfgDialog(HWND hW) // INIT CONFIG DIALOG if(bUse15bitMdec) CheckDlgButton(hW,IDC_FASTMDEC2,TRUE); if(bUseFixes) CheckDlgButton(hW,IDC_GAMEFIX,TRUE); if(bGteAccuracy) CheckDlgButton(hW,IDC_GTEACCURACY,TRUE); + if(iUseExts) CheckDlgButton(hW,IDC_USEEXT, TRUE); if(iUseScanLines) CheckDlgButton(hW,IDC_USESCANLINES,TRUE); if(iShowFPS) CheckDlgButton(hW,IDC_SHOWFPS,TRUE); if(bKeepRatio) CheckDlgButton(hW,IDC_ARATIO,TRUE); @@ -340,6 +341,9 @@ void GetSettings(HWND hW) if(IsDlgButtonChecked(hW,IDC_GTEACCURACY)) bGteAccuracy=TRUE; else bGteAccuracy=FALSE; + if(IsDlgButtonChecked(hW, IDC_USEEXT)) + iUseExts = TRUE; else iUseExts = FALSE; + if(IsDlgButtonChecked(hW,IDC_USESCANLINES)) iUseScanLines=1; else iUseScanLines=0; @@ -627,6 +631,7 @@ void ReadConfig(void) // read all config vals dwCfgFixes=0; bUseFixes=FALSE; bGteAccuracy=FALSE; + iUseExts=TRUE; iUseScanLines=0; iFrameTexType=0; iFrameReadType=0; @@ -731,6 +736,9 @@ void ReadConfig(void) // read all config vals if(RegQueryValueEx(myKey,"GteAccuracy",0,&type,(LPBYTE)&temp,&size)==ERROR_SUCCESS) bGteAccuracy=(BOOL)temp; size = 4; + if(RegQueryValueEx(myKey,"UseExtensions",0,&type,(LPBYTE)&temp, &size)==ERROR_SUCCESS) + iUseExts = (BOOL)temp; + size = 4; if(RegQueryValueEx(myKey,"UseMask",0,&type,(LPBYTE)&temp,&size)==ERROR_SUCCESS) iUseMask=(int)temp; size = 4; @@ -881,6 +889,8 @@ void WriteConfig(void) RegSetValueEx(myKey,"UseFixes",0,REG_DWORD,(LPBYTE) &temp,sizeof(temp)); temp=bGteAccuracy; RegSetValueEx(myKey,"GteAccuracy",0,REG_DWORD,(LPBYTE) &temp,sizeof(temp)); + temp = iUseExts; + RegSetValueEx(myKey,"UseExtensions",0,REG_DWORD,(LPBYTE)&temp,sizeof(temp)); temp=iUseMask; RegSetValueEx(myKey,"UseMask",0,REG_DWORD,(LPBYTE) &temp,sizeof(temp)); temp=bUseFastMdec; |
