diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-05-09 16:37:27 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-11 20:38:01 +0200 |
| commit | bbe336ee97c86c424f8f94e0f947f8e3b20e7123 (patch) | |
| tree | 8e150d92ce7b7f151618aec8cc056d2df01dc5fc /src/lib/cross.h | |
| parent | 2695f450ca00654cef8709e4e3cfb4cf5de48fc7 (diff) | |
Use GetCommandLineW() to get a UTF16-encoded command line on Windows (#2248).
Diffstat (limited to 'src/lib/cross.h')
| -rw-r--r-- | src/lib/cross.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/lib/cross.h b/src/lib/cross.h index b79f7ebdf..4be121d2b 100644 --- a/src/lib/cross.h +++ b/src/lib/cross.h @@ -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 |
