Changeset 1735


Ignore:
Timestamp:
Jul 14, 2010, 7:57:54 PM (11 years ago)
Author:
Sven Rech
Message:

added dirty hack in quadratic sieve to get the real cryptool2 directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/QuadraticSieve/QuadraticSieve.cs

    r1695 r1735  
    840840                    dllname = "msieve64.dll";
    841841
    842                 msieveDLL = Assembly.LoadFile(Directory.GetCurrentDirectory() + "\\AppReferences\\"  + dllname);
     842               
     843                //DIRTY HACK:
     844                String cryptool2dir = Directory.GetCurrentDirectory();
     845                if (cryptool2dir.EndsWith("\\ProjectSamples"))
     846                    cryptool2dir = cryptool2dir.Substring(0, cryptool2dir.Length - "\\ProjectSamples".Length);
     847
     848
     849                msieveDLL = Assembly.LoadFile(cryptool2dir + "\\AppReferences\\"  + dllname);
    843850                msieve = msieveDLL.GetType("Msieve.msieve");
    844851            }
Note: See TracChangeset for help on using the changeset viewer.