Skip to content

Commit 97c6d6f

Browse files
committed
Fix merge mistake
1 parent a60af27 commit 97c6d6f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

common/m_fileio_posix.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "m_fileio.h"
3434

3535
#include <sstream>
36+
#include <filesystem>
3637

3738
#include <errno.h>
3839
#include <pwd.h>
@@ -51,6 +52,8 @@
5152
#include "m_ostring.h"
5253
#include "w_wad.h"
5354

55+
namespace fs = std::filesystem;
56+
5457
std::string M_GetBinaryDir()
5558
{
5659
#if defined(GEKKO)
@@ -139,7 +142,7 @@ std::string M_GetUserDir()
139142
{
140143
fs::path path = M_GetHomeDir();
141144
path /= ".odamex";
142-
return path;
145+
return path.string();
143146
}
144147

145148
std::string M_GetWriteDir()

common/m_fileio_win32.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
#include <shlobj.h>
3737
#include <shlwapi.h>
3838

39-
#include "cmdlib.h"
4039
#include "i_system.h"
41-
#include "m_ostring.h"
4240

4341
std::string M_GetBinaryDir()
4442
{

0 commit comments

Comments
 (0)