mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-18 14:41:26 +08:00
798355e342
新增反代脚本只对Steam内置浏览器生效的选项
20 lines
548 B
C#
20 lines
548 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Steam4NET
|
|
{
|
|
class CallbackIdentities
|
|
{
|
|
public static int GetCallbackIdentity(Type callbackStruct)
|
|
{
|
|
foreach (InteropHelp.CallbackIdentityAttribute attribute in callbackStruct.GetCustomAttributes(typeof(InteropHelp.CallbackIdentityAttribute), false))
|
|
{
|
|
return attribute.Identity;
|
|
}
|
|
|
|
throw new Exception("Callback number not found for struct " + callbackStruct);
|
|
}
|
|
}
|
|
}
|