Apply sysconf EXPLORERS restriction on startup
The sysconf EXPLORERS list restricting access to explore mode was being evaluated and used when a player used the #exploremode command in-game, or when specifying -X or OPTIONS=playmode:explore on the command line when resuming a normal game, but not when starting an entirely new game. When SYSCF is avilable, check for authorization early, similar to debug mode authorization, to restrict access to explore mode to EXPLORERS under (hopefully) all circumstances.
This commit is contained in:
@@ -2123,6 +2123,7 @@ extern int dohistory(void);
|
||||
extern void chdirx(char *, boolean);
|
||||
#endif /* CHDIR */
|
||||
extern boolean authorize_wizard_mode(void);
|
||||
extern boolean authorize_explore_mode(void);
|
||||
#endif
|
||||
#if defined(WIN32)
|
||||
extern int getlock(void);
|
||||
@@ -3100,6 +3101,7 @@ extern void port_help(void);
|
||||
#endif
|
||||
extern void sethanguphandler(void(*)(int));
|
||||
extern boolean authorize_wizard_mode(void);
|
||||
extern boolean authorize_explore_mode(void);
|
||||
extern void append_slash(char *);
|
||||
extern boolean check_user_string(const char *);
|
||||
extern char *get_login_name(void);
|
||||
@@ -3264,6 +3266,7 @@ extern void chdirx(const char *, boolean);
|
||||
#endif /* CHDIR */
|
||||
extern void sethanguphandler(void(*)(int));
|
||||
extern boolean authorize_wizard_mode(void);
|
||||
extern boolean authorize_explore_mode(void);
|
||||
|
||||
/* ### vmsmisc.c ### */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user