- fix issue #1708 - respect user preferences when specifying custom save/config/screenshot paths

This commit is contained in:
Rachael Alexanderson 2022-08-14 15:03:20 -04:00
commit 03d76027cf
5 changed files with 68 additions and 18 deletions

View file

@ -54,9 +54,6 @@
#include "md5.h"
#include "i_specialpaths.h"
void I_OpenShellFolder(const char*);
void I_OpenShellFile(const char*);
extern FILE* Logfile;
CCMD (quit)
@ -341,18 +338,3 @@ CCMD(printlocalized)
}
CCMD(opensaves)
{
I_OpenShellFolder(M_GetSavegamesPath().GetChars());
}
CCMD(openscreenshots)
{
I_OpenShellFolder(M_GetScreenshotsPath().GetChars());
}
CCMD(openconfig)
{
I_OpenShellFile(M_GetConfigPath(false).GetChars());
}

View file

@ -69,4 +69,7 @@ inline int I_GetNumaNodeCount() { return 1; }
inline int I_GetNumaNodeThreadCount(int numaNode) { return std::max<int>(std::thread::hardware_concurrency(), 1); }
inline void I_SetThreadNumaNode(std::thread &thread, int numaNode) { }
void I_OpenShellFolder(const char*);
void I_OpenShellFile(const char*);
#endif

View file

@ -79,4 +79,7 @@ int I_GetNumaNodeCount();
int I_GetNumaNodeThreadCount(int numaNode);
void I_SetThreadNumaNode(std::thread &thread, int numaNode);
void I_OpenShellFolder(const char*);
void I_OpenShellFile(const char*);
#endif