Partial fix for #10 (#16)

* Fix stdafx include

* Fix basic handling of "Games" folder on Windows10 RS4 (#10)
This does the following:
- Sets the default state to hidden
- Skips the Games folder when searching

This does not:
- Hide the dead menu entry.

I do not currently know how to actively change the user preference setting to forcefully hide it.

* Add basic Visual Studio gitignore

* Add specific entries to gitignore

* Do not set default menu to Win7 on RS4 (#10)
This commit is contained in:
Xenhat
2018-06-20 06:52:53 -04:00
committed by GitHub
parent 27d14a8959
commit 468ee876cc
5 changed files with 393 additions and 2 deletions
@@ -3701,6 +3701,11 @@ STDAPI ShGetKnownFolderItem(REFKNOWNFOLDERID rfid, IShellItem **ppItem )
if (rfid==FOLDERID_Games && (GetTickCount()&16))
return E_FAIL;
#endif
// Skip getting the Games menu on RS4
if(IsWin10RS4() && rfid==FOLDERID_Games)
{
return E_FAIL;
}
CString path=GetKnownFolderSetting(rfid);
if (!path.IsEmpty())
{
@@ -4941,7 +4941,7 @@ void UpdateSettings( void )
Assert(wcswcs(defaultMenu,gameSettings0));
Assert(wcswcs(defaultMenu,gameSettings1));
CAbsolutePidl pidl;
if (SUCCEEDED(SHGetKnownFolderIDList(FOLDERID_Games,0,NULL,&pidl)) && !ILIsEmpty(pidl))
if (!IsWin10RS4() && SUCCEEDED(SHGetKnownFolderIDList(FOLDERID_Games,0,NULL,&pidl)) && !ILIsEmpty(pidl))
{
std::vector<wchar_t> buf(Strlen(defaultMenu)+1);
wchar_t *str=&buf[0];