From 5e569d0107aefe292b76ac0458f9420077f350a0 Mon Sep 17 00:00:00 2001
From: isanae <14251494+isanae@users.noreply.github.com>
Date: Sat, 15 Feb 2020 17:22:12 -0500
Subject: re-enabled archive parsing
---
src/shared/util.h | 10 ++++++++++
1 file changed, 10 insertions(+)
(limited to 'src/shared/util.h')
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 .
#define UTIL_H
#include
+#include
#include
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
--
cgit v1.3.1