reorganizing a bit

This commit is contained in:
chudov
2010-02-08 05:06:48 +00:00
parent 8baf9f9ee0
commit cc02d40171
39 changed files with 117 additions and 115 deletions

View File

@@ -805,18 +805,13 @@ namespace CUETools.Processor
arcp_fmt = new List<string>();
encs.Add(typeof(CUETools.Codecs.WAVWriter));
encs.Add(typeof(CUETools.Codecs.FLAKE.FlakeWriter));
encs.Add(typeof(CUETools.Codecs.ALAC.ALACWriter));
decs.Add(typeof(CUETools.Codecs.WAVReader));
decs.Add(typeof(CUETools.Codecs.FLAKE.FlakeReader));
decs.Add(typeof(CUETools.Codecs.ALAC.ALACReader));
//ApplicationSecurityInfo asi = new ApplicationSecurityInfo(AppDomain.CurrentDomain.ActivationContext);
//string arch = asi.ApplicationId.ProcessorArchitecture;
//ActivationContext is null most of the time :(
string arch = Marshal.SizeOf(typeof(IntPtr)) == 8 ? "x64" : "x86";
string arch = Marshal.SizeOf(typeof(IntPtr)) == 8 ? "x64" : "Win32";
string plugins_path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "plugins (" + arch + ")");
if (Directory.Exists(plugins_path))
AddPluginDirectory(plugins_path);