Skip to content

Commit 7e376a9

Browse files
committed
Removed debugging code
1 parent a3fc790 commit 7e376a9

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/main/java/org/mcphackers/mcp/main/MainCLI.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ public static void main(String[] args) throws Exception {
5151
AnsiConsole.systemInstall();
5252
}
5353
else {
54-
// System.err.println("Error: Could not find console. Launching GUI instead");
55-
// MainGUI.main(args);
56-
String filename = MCP.class.getProtectionDomain().getCodeSource().getLocation().toString().substring(6);
57-
Runtime.getRuntime().exec(new String[]{"cmd","/c","start","cmd","/k","java -cp \"" + filename + ";D:/Stuff/git/RetroMCP-Java/build/libs/RetroMCP-Java-all.jar" + "\" org.mcphackers.mcp.main.MainCLI"});
54+
System.err.println("Error: Could not find console. Launching GUI instead");
55+
MainGUI.main(args);
5856
return;
5957
}
6058
new MainCLI(args);

0 commit comments

Comments
 (0)