From f2df781b763031f864b18c03e2ec25ab248fd81b Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Wed, 10 Aug 2022 13:10:13 -0400 Subject: [PATCH] - add menu entries --- src/common/console/c_enginecmds.cpp | 6 +++--- wadsrc/static/menudef.txt | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/common/console/c_enginecmds.cpp b/src/common/console/c_enginecmds.cpp index 4ce05c816..0845ac822 100644 --- a/src/common/console/c_enginecmds.cpp +++ b/src/common/console/c_enginecmds.cpp @@ -341,17 +341,17 @@ CCMD(printlocalized) } -UNSAFE_CCMD(opensaves) +CCMD(opensaves) { I_OpenShellFolder(M_GetSavegamesPath().GetChars()); } -UNSAFE_CCMD(openscreenshots) +CCMD(openscreenshots) { I_OpenShellFolder(M_GetScreenshotsPath().GetChars()); } -UNSAFE_CCMD(openconfig) +CCMD(openconfig) { I_OpenShellFile(M_GetConfigPath(false).GetChars()); } diff --git a/wadsrc/static/menudef.txt b/wadsrc/static/menudef.txt index a69447894..d8024a646 100644 --- a/wadsrc/static/menudef.txt +++ b/wadsrc/static/menudef.txt @@ -380,6 +380,9 @@ OptionMenu "OptionsMenu" protected SafeCommand "$OPTMNU_WRITEINI", "writeini" Command "$OPTMNU_CONSOLE", "menuconsole" + Command "$OPTMNU_OPENCONFIG", "openconfig" + Command "$OPTMNU_OPENSCREENSHOTS", "openscreenshots" + Command "$OPTMNU_OPENSAVES", "opensaves" StaticText " " }