Fix to allow Greenshot to run as a portable App, installer will hopefully be made this week...

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2577 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-04-22 13:30:38 +00:00
commit 791140101a
3 changed files with 23 additions and 24 deletions

View file

@ -28,8 +28,6 @@ namespace Greenshot {
/// Description of Main.
/// </summary>
public class GreenshotMain {
private const string PAF_PATH = @"App\Greenshot";
static GreenshotMain() {
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
}
@ -49,8 +47,6 @@ namespace Greenshot {
[STAThread]
public static void Main(string[] args) {
// Needed to make Greenshot portable, the path should be appended before the DLL's are loaded!!
AppDomain.CurrentDomain.AppendPrivatePath(PAF_PATH);
MainForm.Start(args);
}
}