Advertisement
Deathmax

Untitled

May 27th, 2011
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace Terraria
  4. {
  5.     public class Steam
  6.     {
  7.         public static bool SteamInit;
  8.         [DllImport("steam_api.dll")]
  9.         private static extern bool SteamAPI_Init();
  10.         [DllImport("steam_api.dll")]
  11.         private static extern bool SteamAPI_Shutdown();
  12.         public static void Init()
  13.         {
  14.             Steam.SteamInit = Steam.SteamAPI_Init();
  15.         }
  16.         public static void Kill()
  17.         {
  18.             Steam.SteamAPI_Shutdown();
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement