win32 clear registry
Clear the registry settings via
nethack -clearreg
This commit is contained in:
+11
-1
@@ -59,6 +59,10 @@ extern void FDECL(nethack_exit,(int));
|
|||||||
#define nethack_exit exit
|
#define nethack_exit exit
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(MSWIN_GRAPHICS)
|
||||||
|
extern void NDECL(mswin_destroy_reg);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef EXEPATH
|
#ifdef EXEPATH
|
||||||
STATIC_DCL char *FDECL(exepath,(char *));
|
STATIC_DCL char *FDECL(exepath,(char *));
|
||||||
#endif
|
#endif
|
||||||
@@ -236,7 +240,13 @@ char *argv[];
|
|||||||
#endif /*MSWIN_GRAPHICS*/
|
#endif /*MSWIN_GRAPHICS*/
|
||||||
nethack_exit(EXIT_SUCCESS);
|
nethack_exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MSWIN_GRAPHICS
|
||||||
|
if (!strncmpi(argv[1], "-clearreg", 6)) { /* clear registry */
|
||||||
|
mswin_destroy_reg();
|
||||||
|
nethack_exit(EXIT_SUCCESS);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
/* Don't initialize the window system just to print usage */
|
/* Don't initialize the window system just to print usage */
|
||||||
if (!strncmp(argv[1], "-?", 2) || !strncmp(argv[1], "/?", 2)) {
|
if (!strncmp(argv[1], "-?", 2) || !strncmp(argv[1], "/?", 2)) {
|
||||||
nhusage();
|
nhusage();
|
||||||
|
|||||||
Reference in New Issue
Block a user