mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
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:
parent
5e7f676cfd
commit
791140101a
3 changed files with 23 additions and 24 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue