- add openscreenshots opensaves and openconfig console commands on Windows and Linux and Mac

This commit is contained in:
Rachael Alexanderson 2022-08-10 12:06:03 -04:00 committed by Rachael Alexanderson
commit 82d0376520
5 changed files with 104 additions and 1 deletions

View file

@ -52,6 +52,10 @@
#include "version.h"
#include "findfile.h"
#include "md5.h"
#include "i_specialpaths.h"
void I_OpenShellFolder(const char*);
void I_OpenShellFile(const char*);
extern FILE* Logfile;
@ -336,3 +340,19 @@ CCMD(printlocalized)
}
}
UNSAFE_CCMD(opensaves)
{
I_OpenShellFolder(M_GetSavegamesPath().GetChars());
}
UNSAFE_CCMD(openscreenshots)
{
I_OpenShellFolder(M_GetScreenshotsPath().GetChars());
}
UNSAFE_CCMD(openconfig)
{
I_OpenShellFile(M_GetConfigPath(false).GetChars());
}