| 838 | } |
| 839 | |
| 840 | static u8string SelectGogInstaller() |
| 841 | { |
| 842 | FileDialogDesc desc{}; |
| 843 | desc.Type = FileDialogType::Open; |
| 844 | desc.Title = LanguageGetString(STR_SELECT_GOG_INSTALLER); |
| 845 | desc.Filters.emplace_back(LanguageGetString(STR_GOG_INSTALLER), "*.exe"); |
| 846 | desc.Filters.emplace_back(LanguageGetString(STR_ALL_FILES), "*"); |
| 847 | |
| 848 | const auto userHomePath = Platform::GetFolderPath(SpecialFolder::userHome); |
| 849 | desc.InitialDirectory = userHomePath; |
| 850 | |
| 851 | return ContextOpenCommonFileDialog(desc); |
| 852 | } |
| 853 | |
| 854 | static bool ExtractGogInstaller(const u8string& installerPath, const u8string& targetPath) |
| 855 | { |
no test coverage detected