mirror of
https://github.com/OpenMW/openmw.git
synced 2026-01-31 11:48:26 +00:00
Address feedback
This commit is contained in:
parent
844a19e647
commit
dafefc2e88
3 changed files with 4 additions and 4 deletions
|
|
@ -71,7 +71,7 @@ Wizard::MainWizard::MainWizard(Files::ConfigurationManager&& cfgMgr, QWidget* pa
|
|||
setupInstallations();
|
||||
setupPages();
|
||||
|
||||
for (std::filesystem::path installationPath : mCfgMgr.getInstallPaths())
|
||||
for (const std::filesystem::path& installationPath : mCfgMgr.getInstallPaths())
|
||||
{
|
||||
addInstallation(Files::pathToQString(installationPath / "Data Files"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,10 +119,10 @@ namespace Files
|
|||
// Flatpak
|
||||
homePath / ".var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Morrowind",
|
||||
};
|
||||
for (std::filesystem::path steam : steamPaths)
|
||||
for (const std::filesystem::path& steam : steamPaths)
|
||||
{
|
||||
if (std::filesystem::is_directory(steam))
|
||||
paths.emplace_back(std::move(steam));
|
||||
paths.emplace_back(steam);
|
||||
}
|
||||
}
|
||||
return paths;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace Files::Wine
|
||||
{
|
||||
std::filesystem::path getInstallPath(const std::filesystem::path& homePath)
|
||||
static std::filesystem::path getInstallPath(const std::filesystem::path& homePath)
|
||||
{
|
||||
std::filesystem::path wineDefaultRegistry = homePath / ".wine/system.reg";
|
||||
if (!std::filesystem::is_regular_file(wineDefaultRegistry))
|
||||
|
|
|
|||
Loading…
Reference in a new issue