We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a60af27 commit 97c6d6fCopy full SHA for 97c6d6f
common/m_fileio_posix.cpp
@@ -33,6 +33,7 @@
33
#include "m_fileio.h"
34
35
#include <sstream>
36
+#include <filesystem>
37
38
#include <errno.h>
39
#include <pwd.h>
@@ -51,6 +52,8 @@
51
52
#include "m_ostring.h"
53
#include "w_wad.h"
54
55
+namespace fs = std::filesystem;
56
+
57
std::string M_GetBinaryDir()
58
{
59
#if defined(GEKKO)
@@ -139,7 +142,7 @@ std::string M_GetUserDir()
139
142
140
143
fs::path path = M_GetHomeDir();
141
144
path /= ".odamex";
- return path;
145
+ return path.string();
146
}
147
148
std::string M_GetWriteDir()
common/m_fileio_win32.cpp
@@ -36,9 +36,7 @@
#include <shlobj.h>
#include <shlwapi.h>
-#include "cmdlib.h"
40
#include "i_system.h"
41
-#include "m_ostring.h"
42
43
44
0 commit comments