mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-18 14:41:26 +08:00
798355e342
新增反代脚本只对Steam内置浏览器生效的选项
19 lines
527 B
C#
19 lines
527 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Steam4NET
|
|
{
|
|
class InterfaceVersions
|
|
{
|
|
public static string GetInterfaceIdentifier( Type steamClass )
|
|
{
|
|
foreach(InteropHelp.InterfaceVersionAttribute attribute in steamClass.GetCustomAttributes(typeof(InteropHelp.InterfaceVersionAttribute), false))
|
|
{
|
|
return attribute.Identifier;
|
|
}
|
|
|
|
throw new Exception("Version identifier not found for class " + steamClass);
|
|
}
|
|
}
|
|
}
|