vmm_path is no longer temporary

This commit is contained in:
Alexander Babikov
2025-08-22 12:41:35 +05:00
parent 7d38d033b5
commit ec080ef34a
5 changed files with 3 additions and 19 deletions

View File

@@ -139,22 +139,10 @@ VMManagerSystem::scanForConfigs(QWidget* parent, const QString &searchPath)
scanTimer.start();
QVector<VMManagerSystem *> system_configs;
const auto config = new VMManagerConfig(VMManagerConfig::ConfigType::General);
auto systemDirConfig = config->getStringValue("system_directory");
const auto config_file_name = QString("86box.cfg");
const QStringList filters = {config_file_name};
QStringList matches;
// TODO: Preferences. Once I get the CLI args worked out.
// For now it just takes vmm_path from the CLI
QString search_directory;
// if(searchPath.isEmpty()) {
// // If the location isn't specified in function call, use the one loaded
// // from the config file
// search_directory = systemDirConfig;
// } else {
// search_directory = searchPath;
// }
search_directory = searchPath.isEmpty()? vmm_path : searchPath;