MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / SelectGogInstaller

Function SelectGogInstaller

src/openrct2/config/Config.cpp:840–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

Calls 3

LanguageGetStringFunction · 0.85
GetFolderPathFunction · 0.50

Tested by

no test coverage detected