mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUERipper update;
CTDB xml interface; Minor bugfixes; Version 2.0.6-2.0.7
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Deployment.Application;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CUERipper
|
||||
@@ -14,7 +16,33 @@ namespace CUERipper
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
||||
string arch = Marshal.SizeOf(typeof(IntPtr)) == 8 ? "x64" : "Win32";
|
||||
GetSatelliteAssemblies("Plugins (" + arch + ")");
|
||||
|
||||
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.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user