internal static KeyValue GetSteam3AppSection(uint appId, EAppInfoSection section) { if (steam3 == null || steam3.AppInfo == null) { return(null); } SteamApps.PICSProductInfoCallback.PICSProductInfo app; if (!steam3.AppInfo.TryGetValue(appId, out app) || app == null) { return(null); } KeyValue appinfo = app.KeyValues; string section_key; switch (section) { case EAppInfoSection.Common: section_key = "common"; break; case EAppInfoSection.Extended: section_key = "extended"; break; case EAppInfoSection.Config: section_key = "config"; break; case EAppInfoSection.Depots: section_key = "depots"; break; default: throw new NotImplementedException(); } KeyValue section_kv = appinfo.Children.Where(c => c.Name == section_key).FirstOrDefault(); return(section_kv); }
static KeyValue GetSteam3AppSection(int appId, EAppInfoSection section) { if (steam3 == null || steam3.AppInfo == null) { return(null); } SteamApps.AppInfoCallback.App app; if (!steam3.AppInfo.TryGetValue((uint)appId, out app)) { return(null); } KeyValue section_kv; if (!app.Sections.TryGetValue(section, out section_kv)) { return(null); } return(section_kv); }
internal static async Task <KeyValue> GetSteam3AppSectionAsync(uint appId, EAppInfoSection section) { SteamApps.PICSProductInfoCallback.PICSProductInfo app = await SteamSession.RequestAppInfoAsync(appId).ConfigureAwait(false); if (app == null) { return(null); } KeyValue appInfo = app.KeyValues; string sectionKey; switch (section) { case EAppInfoSection.Common: sectionKey = "common"; break; case EAppInfoSection.Extended: sectionKey = "extended"; break; case EAppInfoSection.Config: sectionKey = "config"; break; case EAppInfoSection.Depots: sectionKey = "depots"; break; default: throw new NotImplementedException(); } KeyValue sectionKv = appInfo.Children.FirstOrDefault(c => c.Name == sectionKey); return(sectionKv); }
internal static KeyValue GetSteam3AppSection( int appId, EAppInfoSection section ) { if (steam3 == null || steam3.AppInfo == null) { return null; } SteamApps.PICSProductInfoCallback.PICSProductInfo app; if ( !steam3.AppInfo.TryGetValue( (uint)appId, out app ) || app == null ) { return null; } KeyValue appinfo = app.KeyValues; string section_key; switch (section) { case EAppInfoSection.Common: section_key = "common"; break; case EAppInfoSection.Extended: section_key = "extended"; break; case EAppInfoSection.Config: section_key = "config"; break; case EAppInfoSection.Depots: section_key = "depots"; break; default: throw new NotImplementedException(); } KeyValue section_kv = appinfo.Children.Where(c => c.Name == section_key).FirstOrDefault(); return section_kv; }
static KeyValue GetSteam3AppSection(int appId, EAppInfoSection section) { if (steam3 == null || steam3.AppInfo == null) { return null; } SteamApps.AppInfoCallback.App app; if (!steam3.AppInfo.TryGetValue((uint)appId, out app)) { return null; } KeyValue section_kv; if (!app.Sections.TryGetValue(section, out section_kv)) { return null; } return section_kv; }
public Int32 GetAppDataSection(UInt32 unAppID, EAppInfoSection eSection, Byte[] pchBuffer, bool bSharedKVSymbols) { return(this.GetFunction <NativeGetAppDataSectionUEBIB>(this.Functions.GetAppDataSection3)(this.ObjectAddress, unAppID, eSection, pchBuffer, (Int32)pchBuffer.Length, bSharedKVSymbols)); }