- cleanup of Windows's I_OpenShell* functions

* do not use deprecated library features (wstring_convert was deorecated in C++17) - instead use the existing WideString utility.
* do proper calculation of the current directory's path length.
* remove the mostly redundant I_OpenShellFile function and instead use ExtractFilePath to get the config's path.
This commit is contained in:
Christoph Oelckers 2022-08-17 00:31:22 +02:00
commit c5f4967871
6 changed files with 11 additions and 73 deletions

View file

@ -316,7 +316,7 @@ UNSAFE_CCMD (writeini)
CCMD(openconfig)
{
M_SaveDefaults(nullptr);
I_OpenShellFile(GameConfig->GetPathName());
I_OpenShellFolder(ExtractFilePath(GameConfig->GetPathName()));
}
//