mirror of
https://github.com/EpicMorg/UniversalValveToolbox.git
synced 2025-01-13 15:18:14 +03:00
fix not-install steam
This commit is contained in:
parent
3e8164fcc1
commit
a5bbb8f563
@ -11,8 +11,8 @@ namespace UniversalValveToolbox.Utils {
|
|||||||
public static SteamDataViewModel SteamData {
|
public static SteamDataViewModel SteamData {
|
||||||
get {
|
get {
|
||||||
var result = new SteamDataViewModel();
|
var result = new SteamDataViewModel();
|
||||||
result.SteamPid = SteamPathsUtil.GetActiveProcessSteamData().PID;
|
result.SteamPid = SteamPathsUtil.GetActiveProcessSteamData()?.PID ?? 0;
|
||||||
result.UserNameSteam = SteamPathsUtil.GetSteamData().LastGameNameUsed;
|
result.UserNameSteam = SteamPathsUtil.GetSteamData()?.LastGameNameUsed ?? null;
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user