mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-26 02:25:03 +00:00
More updater fixage
Preserve --dir parameter after updating Allow more than one copy of a command line parameter in MultiMC Linux runner script no longer changes current directory, which allows '--dir .' Fixed unit tests, removed the obsolete one (for some legacy updater command line params that were also removed) [fixes 63127704]
This commit is contained in:
@@ -40,6 +40,7 @@ void UpdaterOptions::parse(int argc, char** argv)
|
||||
parser.setOption("install-dir");
|
||||
parser.setOption("package-dir");
|
||||
parser.setOption("finish-cmd");
|
||||
parser.setOption("finish-dir");
|
||||
parser.setOption("script");
|
||||
parser.setOption("wait");
|
||||
parser.setOption("mode");
|
||||
@@ -74,6 +75,10 @@ void UpdaterOptions::parse(int argc, char** argv)
|
||||
{
|
||||
finishCmd = parser.getValue("finish-cmd");
|
||||
}
|
||||
if (parser.getValue("finish-dir"))
|
||||
{
|
||||
finishDir = parser.getValue("finish-dir");
|
||||
}
|
||||
|
||||
showVersion = parser.getFlag("version");
|
||||
forceElevated = parser.getFlag("force-elevated");
|
||||
|
||||
Reference in New Issue
Block a user