Use GetCommandLineW() to get a UTF16-encoded command line on Windows (#2248).
[dcpomatic.git] / src / lib / cross.h
index b79f7ebdf6953071bef4df028470a4010e047d8a..4be121d2bb1daec1e46451366e26621ecef7ca63 100644 (file)
@@ -159,4 +159,27 @@ boost::optional<OSXMediaPath> analyse_osx_media_path (std::string path);
 std::vector<Drive> osx_disks_to_drives (std::vector<OSXDisk> disks);
 
 
+class ArgFixer
+{
+public:
+       ArgFixer(int argc, char** argv);
+
+       int argc() const {
+               return _argc;
+       }
+
+       char** argv() const {
+                return _argv;
+       }
+
+private:
+       int _argc;
+       char** _argv;
+#ifdef DCPOMATIC_WINDOWS
+       std::vector<std::string> _argv_strings;
+#endif
+
+};
+
+
 #endif