We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99ac10a commit 3604404Copy full SHA for 3604404
src/common/config.cpp
@@ -578,6 +578,12 @@ void load(const std::filesystem::path& path) {
578
m_window_size_W = toml::find_or<int>(gui, "mw_width", 0);
579
m_window_size_H = toml::find_or<int>(gui, "mw_height", 0);
580
581
+ const auto install_dir_array =
582
+ toml::find_or<std::vector<std::string>>(gui, "installDirs", {});
583
+ for (const auto& dir : install_dir_array) {
584
+ addGameInstallDir(std::filesystem::path{dir});
585
+ }
586
+
587
settings_addon_install_dir = toml::find_fs_path_or(gui, "addonInstallDir", {});
588
main_window_geometry_x = toml::find_or<int>(gui, "geometry_x", 0);
589
main_window_geometry_y = toml::find_or<int>(gui, "geometry_y", 0);
0 commit comments