mirror of
https://github.com/lubosz/overte.git
synced 2025-04-17 00:57:44 +02:00
Remove useless command line arg for steam, but add one for version.
This commit is contained in:
parent
974768390c
commit
d71666f337
1 changed files with 2 additions and 4 deletions
|
@ -462,10 +462,8 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) {
|
|||
auto version = DependencyManager::get<AddressManager>()->protocolVersion();
|
||||
fputs(version.toLatin1().data(), fp);
|
||||
});
|
||||
reportAndQuit("--installationPortal", [&](FILE* fp) {
|
||||
auto steamClient = PluginManager::getInstance()->getSteamClientPlugin();
|
||||
bool isSteam = steamClient && steamClient->init();
|
||||
fputs(isSteam ? "steam" : "download", fp);
|
||||
reportAndQuit("--version", [&](FILE* fp) {
|
||||
fputs(BuildInfo::VERSION.toLatin1().data(), fp);
|
||||
});
|
||||
|
||||
const char* portStr = getCmdOption(argc, constArgv, "--listenPort");
|
||||
|
|
Loading…
Reference in a new issue