Files
cuetools.net/CUERipper/Program.cs

48 lines
1.1 KiB
C#
Raw Normal View History

2008-12-08 05:09:35 +00:00
using System;
using System.Collections.Generic;
using System.Deployment.Application;
using System.Runtime.InteropServices;
2008-12-08 05:09:35 +00:00
using System.Windows.Forms;
namespace CUERipper
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
string arch = Marshal.SizeOf(typeof(IntPtr)) == 8 ? "x64" : "Win32";
GetSatelliteAssemblies("Plugins (" + arch + ")");
2008-12-08 05:09:35 +00:00
Application.Run(new frmCUERipper());
}
static void GetSatelliteAssemblies(string groupName)
{
if (ApplicationDeployment.IsNetworkDeployed)
{
ApplicationDeployment deploy = ApplicationDeployment.CurrentDeployment;
if (deploy.IsFirstRun)
{
try
{
deploy.DownloadFileGroup(groupName);
}
catch (DeploymentException de)
{
// Log error. Do not report this error to the user, because a satellite
// assembly may not exist if the user's culture and the application's
// default culture match.
}
}
}
}
2008-12-08 05:09:35 +00:00
}
}