mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
insert solitaire into the start menu if it's been installed.
svn path=/trunk/; revision=18647
This commit is contained in:
parent
d181c34e7a
commit
eec7e9d35d
3 changed files with 10 additions and 2 deletions
|
@ -34,6 +34,7 @@
|
||||||
|
|
||||||
#include <commctrl.h>
|
#include <commctrl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <io.h>
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
@ -446,8 +447,13 @@ InstallReactOS (HINSTANCE hInstance)
|
||||||
CreateShortcut(CSIDL_PROGRAMS, sAccessories, _T("regedit.lnk"), _T("regedit.exe"), IDS_CMT_REGEDIT);
|
CreateShortcut(CSIDL_PROGRAMS, sAccessories, _T("regedit.lnk"), _T("regedit.exe"), IDS_CMT_REGEDIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* create Games subfolder */
|
/* create Games subfolder and fill if the exe is available */
|
||||||
CreateShortcutFolder(CSIDL_PROGRAMS, IDS_GAMES, sGames, 256);
|
if (CreateShortcutFolder(CSIDL_PROGRAMS, IDS_GAMES, sGames, 256)) {
|
||||||
|
/* Check for existence */
|
||||||
|
if( (_access( "c:\\reactos\\system32\\sol.exe", 0 )) != -1 )
|
||||||
|
CreateShortcut(CSIDL_PROGRAMS, sGames, _T("Solitaire.lnk"), _T("sol.exe"), IDS_CMT_SOLITAIRE);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
CoUninitialize();
|
CoUninitialize();
|
||||||
|
|
||||||
|
|
|
@ -93,6 +93,7 @@
|
||||||
#define IDS_CMT_WINEFILE 3212
|
#define IDS_CMT_WINEFILE 3212
|
||||||
#define IDS_CMT_NOTEPAD 3213
|
#define IDS_CMT_NOTEPAD 3213
|
||||||
#define IDS_CMT_REGEDIT 3214
|
#define IDS_CMT_REGEDIT 3214
|
||||||
|
#define IDS_CMT_SOLITAIRE 3215
|
||||||
|
|
||||||
#define IDR_GPL 4000
|
#define IDR_GPL 4000
|
||||||
|
|
||||||
|
|
|
@ -207,6 +207,7 @@ END
|
||||||
STRINGTABLE
|
STRINGTABLE
|
||||||
BEGIN
|
BEGIN
|
||||||
IDS_GAMES "Games"
|
IDS_GAMES "Games"
|
||||||
|
IDS_CMT_SOLITAIRE "Solitaire"
|
||||||
END
|
END
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue