mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
958839668c
- Minor fixes - string based paths -> boost::filesystem::path paths (I hope it's final) - New user data path on windows - New moving dir method on windows.
20 lines
389 B
C
20 lines
389 B
C
#pragma once
|
|
|
|
#include "../Global.h"
|
|
|
|
#include <QtWidgets>
|
|
#include <QStringList>
|
|
#include <QSet>
|
|
#include <QVector>
|
|
#include <QList>
|
|
#include <QString>
|
|
#include <QFile>
|
|
|
|
inline QString pathToQString(const boost::filesystem::path & path)
|
|
{
|
|
#ifdef VCMI_WINDOWS
|
|
return QString::fromStdWString(path.wstring());
|
|
#else
|
|
return QString::fromStdString(path.string());
|
|
#endif
|
|
} |