summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e56197c9..7f0886f6 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -280,7 +280,7 @@ std::optional<Instance> selectInstance()
PluginContainer pc(nullptr);
pc.loadPlugins();
- if (m.instancePaths().empty() && !m.portableInstanceExists()) {
+ if (!m.hasAnyInstances()) {
// no instances configured
CreateInstanceDialog dlg(pc, nullptr);
if (dlg.exec() != QDialog::Accepted) {
@@ -454,10 +454,6 @@ int runApplication(
log::info("data path: {}", dataPath);
- if (InstanceManager::isPortablePath(dataPath)) {
- log::debug("this is a portable instance");
- }
-
log::info("working directory: {}", QDir::currentPath());
if (!instance.secondary()) {
@@ -529,6 +525,10 @@ int runApplication(
}
}
+ if (currentInstance.isPortable()) {
+ log::debug("this is a portable instance");
+ }
+
checkPathsForSanity(*currentInstance.gamePlugin(), settings);
organizer.setManagedGame(currentInstance.gamePlugin());
@@ -665,13 +665,13 @@ int doOneRun(
if (!currentInstance->directory().exists()) {
// the previously used instance doesn't exist anymore
- if (m.instanceNames().empty() && !m.portableInstanceExists()) {
+ if (m.hasAnyInstances()) {
criticalOnTop(QObject::tr(
- "Instance at '%1' not found. You must create a new instance")
- .arg(currentInstance->directory().absolutePath()));
+ "Instance at '%1' not found. Select another instance.")
+ .arg(currentInstance->directory().absolutePath()));
} else {
criticalOnTop(QObject::tr(
- "Instance at '%1' not found. Select another instance.")
+ "Instance at '%1' not found. You must create a new instance")
.arg(currentInstance->directory().absolutePath()));
}