mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-12 19:06:09 +00:00
Merge branch 'master' of github.com:limelight-stream/limelight-pc
# By Cameron Gutman # Via Cameron Gutman * 'master' of github.com:limelight-stream/limelight-pc: Extract AVC dependencies on all platforms Fix unused import warnings Log to a file if running from a JAR Remove the native gamepad cleanup on application close. We don't want native code in the critical closing path because it could mean that the program can't be closed if someone chooses the wrong platform JAR. Link the gamepad library to Xinput9_1_0.dll so the DirectX Runtime Installer isn't required for Vista and later
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
package com.limelight;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintStream;
|
||||
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.UIManager;
|
||||
@@ -107,6 +111,15 @@ public class Limelight implements NvConnectionListener {
|
||||
* @param args unused.
|
||||
*/
|
||||
public static void main(String args[]) {
|
||||
// Redirect logging to a file if we're running from a JAR
|
||||
if (LibraryHelper.isRunningFromJar()) {
|
||||
try {
|
||||
System.setErr(new PrintStream(new File("error.log")));
|
||||
System.setOut(new PrintStream(new File("output.log")));
|
||||
} catch (IOException e) {
|
||||
}
|
||||
}
|
||||
|
||||
//fix the menu bar if we are running in osx
|
||||
if (System.getProperty("os.name").contains("Mac OS X")) {
|
||||
// take the menu bar off the jframe
|
||||
|
||||
Reference in New Issue
Block a user