diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-02-15 17:22:12 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-02-18 17:25:05 -0500 |
| commit | 5e569d0107aefe292b76ac0458f9420077f350a0 (patch) | |
| tree | dca1410b91361a937f58ed3a3aa0bcb39b80eef2 /src/shared/util.h | |
| parent | dbb3f5117a3f977bbef34ebdab217f379429d1f2 (diff) | |
re-enabled archive parsing
Diffstat (limited to 'src/shared/util.h')
| -rw-r--r-- | src/shared/util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index dc6e72ad..1d3cce82 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -21,6 +21,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #define UTIL_H
#include <string>
+#include <filesystem>
#include <versioninfo.h>
class Executable;
@@ -51,6 +52,15 @@ QString getUsvfsVersionString(); void SetThisThreadName(const QString& s);
void checkDuplicateShortcuts(const QMenu& m);
+inline FILETIME ToFILETIME(std::filesystem::file_time_type t)
+{
+ FILETIME ft;
+ static_assert(sizeof(t) == sizeof(ft));
+
+ std::memcpy(&ft, &t, sizeof(FILETIME));
+ return ft;
+}
+
} // namespace MOShared
|
