idle_master_extended/steam-idle Source/steam-idle/Program.cs
2015-01-13 09:21:57 -08:00

28 lines
No EOL
666 B
C#
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using Steamworks;
namespace steam_idle
{
static class Program
{
[STAThread]
static void Main(string[] args)
{
long appId = long.Parse(args[0]);
Environment.SetEnvironmentVariable("SteamAppId", appId.ToString());
if (!SteamAPI.Init())
{
return;
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMain(appId));
}
}
}