mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-06-14 11:26:38 +10:00
* 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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user