MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / getSteamStatus

Function getSteamStatus

src/spawn.cpp:519–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517};
518
519SteamStatus getSteamStatus()
520{
521 SteamStatus ss;
522
523 const auto ps = env::Environment().runningProcesses();
524
525 for (const auto& p : ps) {
526 if ((p.name().compare("Steam.exe", Qt::CaseInsensitive) == 0) ||
527 (p.name().compare("SteamService.exe", Qt::CaseInsensitive) == 0)) {
528 ss.running = true;
529 ss.accessible = p.canAccess();
530
531 log::debug("'{}' is running, accessible={}", p.name(),
532 (ss.accessible ? "yes" : "no"));
533
534 break;
535 }
536 }
537
538 return ss;
539}
540
541QString makeSteamArguments(const QString& username, const QString& password)
542{

Callers 1

checkSteamFunction · 0.85

Calls 5

runningProcessesMethod · 0.80
compareMethod · 0.80
canAccessMethod · 0.80
EnvironmentClass · 0.70
nameMethod · 0.45

Tested by

no test coverage detected