insert solitaire into the start menu if it's been installed.
Modified: trunk/reactos/lib/syssetup/install.c
Modified: trunk/reactos/lib/syssetup/resource.h
Modified: trunk/reactos/lib/syssetup/syssetup_En.rc
_____
Modified: trunk/reactos/lib/syssetup/install.c
--- trunk/reactos/lib/syssetup/install.c 2005-10-20 21:55:55 UTC
(rev 18646)
+++ trunk/reactos/lib/syssetup/install.c 2005-10-20 22:11:33 UTC
(rev 18647)
@@ -34,6 +34,7 @@
#include <commctrl.h>
#include <stdio.h>
+#include <io.h>
#include <tchar.h>
#include <stdlib.h>
@@ -446,9 +447,14 @@
CreateShortcut(CSIDL_PROGRAMS, sAccessories, _T("regedit.lnk"),
_T("regedit.exe"), IDS_CMT_REGEDIT);
}
- /* create Games subfolder */
- CreateShortcutFolder(CSIDL_PROGRAMS, IDS_GAMES, sGames, 256);
+ /* create Games subfolder and fill if the exe is available */
+ 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();
/* Create the semi-random Domain-SID */
_____
Modified: trunk/reactos/lib/syssetup/resource.h
--- trunk/reactos/lib/syssetup/resource.h 2005-10-20 21:55:55 UTC
(rev 18646)
+++ trunk/reactos/lib/syssetup/resource.h 2005-10-20 22:11:33 UTC
(rev 18647)
@@ -93,6 +93,7 @@
#define IDS_CMT_WINEFILE 3212
#define IDS_CMT_NOTEPAD 3213
#define IDS_CMT_REGEDIT 3214
+#define IDS_CMT_SOLITAIRE 3215
#define IDR_GPL 4000
_____
Modified: trunk/reactos/lib/syssetup/syssetup_En.rc
--- trunk/reactos/lib/syssetup/syssetup_En.rc 2005-10-20 21:55:55 UTC
(rev 18646)
+++ trunk/reactos/lib/syssetup/syssetup_En.rc 2005-10-20 22:11:33 UTC
(rev 18647)
@@ -207,6 +207,7 @@
STRINGTABLE
BEGIN
IDS_GAMES "Games"
+ IDS_CMT_SOLITAIRE "Solitaire"
END
Show replies by date