mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-16 13:51:15 +00:00
Warn for unsupported VM's
This commit is contained in:
@@ -44,6 +44,12 @@ public class Limelight implements NvConnectionListener {
|
|||||||
* Creates a connection to the host and starts up the stream.
|
* Creates a connection to the host and starts up the stream.
|
||||||
*/
|
*/
|
||||||
private void startUp(StreamConfiguration streamConfig, List<String> inputs, String mappingFile) {
|
private void startUp(StreamConfiguration streamConfig, List<String> inputs, String mappingFile) {
|
||||||
|
String vm = System.getProperties().getProperty("java.vm.name");
|
||||||
|
if (!vm.contains("HotSpot")) {
|
||||||
|
System.err.println("You are using a unsupported VM: " + vm);
|
||||||
|
System.err.println("Please update to Oracle Java (Embedded) for better performances");
|
||||||
|
}
|
||||||
|
|
||||||
conn = new NvConnection(host, this, streamConfig);
|
conn = new NvConnection(host, this, streamConfig);
|
||||||
|
|
||||||
if (inputs.isEmpty()) {
|
if (inputs.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user