Added SteamApps.IsTimedTrial

This commit is contained in:
Garry Newman 2020-08-18 11:33:31 +01:00
parent 68a1886283
commit 88c742d415

View File

@ -266,5 +266,24 @@ public static string CommandLine
} }
} }
/// <summary>
/// check if game is a timed trial with limited playtime
/// </summary>
public static bool IsTimedTrial( out int secondsAllowed, out int secondsPlayed )
{
uint a = 0;
uint b = 0;
secondsAllowed = 0;
secondsPlayed = 0;
if ( !Internal.BIsTimedTrial( ref a, ref b ) )
return false;
secondsAllowed = (int) a;
secondsPlayed = (int) b;
return true;
}
} }
} }