aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NorthstarLauncher/main.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/NorthstarLauncher/main.cpp b/NorthstarLauncher/main.cpp
index dd3b68f5..9f641036 100644
--- a/NorthstarLauncher/main.cpp
+++ b/NorthstarLauncher/main.cpp
@@ -254,13 +254,9 @@ void PrependPath()
bool ShouldLoadNorthstar(int argc, char* argv[])
{
- bool loadNorthstar = true;
for (int i = 0; i < argc; i++)
if (!strcmp(argv[i], "-vanilla"))
- loadNorthstar = false;
-
- if (!loadNorthstar)
- return loadNorthstar;
+ return false;
auto runNorthstarFile = std::ifstream("run_northstar.txt");
if (runNorthstarFile)
@@ -269,9 +265,9 @@ bool ShouldLoadNorthstar(int argc, char* argv[])
runNorthstarFileBuffer << runNorthstarFile.rdbuf();
runNorthstarFile.close();
if (runNorthstarFileBuffer.str().starts_with("0"))
- loadNorthstar = false;
+ return false;
}
- return loadNorthstar;
+ return true;
}
bool LoadNorthstar()