This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using NGit; | |
using NGit.Api; | |
// USES NuGet package ngit2 for Git. | |
namespace GitTest | |
{ | |
class Program |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class NativeMethods | |
{ | |
public static IntPtr GetAndSetWindowFullScreenWindowed(string windowTitle) | |
{ | |
var minecraftWindow = FindWindowEx(IntPtr.Zero, IntPtr.Zero, null, windowTitle); | |
if (minecraftWindow == IntPtr.Zero) | |
{ | |
return IntPtr.Zero; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void AutoLaunchApplication(IEnumerable<string> commandLineOptions) | |
{ | |
const string java6Location = @"C:\Program Files\Java\jre6\bin\javaw.exe"; | |
const string java7Location = @"C:\Program Files\Java\jre7\bin\javaw.exe"; | |
var javaLocation = File.Exists(java7Location) ? java7Location : java6Location; | |
// check for java - eww | |
if (!File.Exists(javaLocation)) // default java location for both 32/64 bit | |
{ |
NewerOlder