diff --git a/src/main/java/chokistream/NTRClient.java b/src/main/java/chokistream/NTRClient.java index b623ebd..638d0e8 100644 --- a/src/main/java/chokistream/NTRClient.java +++ b/src/main/java/chokistream/NTRClient.java @@ -144,7 +144,7 @@ public static void sendInitPacket(String host, int port, DSScreen screen, int pr args[0] = ((screen == DSScreen.TOP)? 1 : 0) << 8 | (priority % 256); args[1] = quality; - args[2] = qos*2; // Nobody has any clue why, but NTR expects double the QoS value + args[2] = (qos*2) << 16; // Convert to the format expected by NTR and NTR-HR try { logger.log("Sending init packet", LogLevel.VERBOSE); diff --git a/src/main/java/chokistream/props/Prop.java b/src/main/java/chokistream/props/Prop.java index f093be4..8143094 100644 --- a/src/main/java/chokistream/props/Prop.java +++ b/src/main/java/chokistream/props/Prop.java @@ -13,7 +13,7 @@ public final class Prop { public static final Prop INTERLACE = new Prop<>("interlace", "Interlace?", false, Boolean.class); public static final Prop PRIORITYSCREEN = new Prop<>("priorityScreen", "Priority Screen", DSScreen.TOP, DSScreen.class); public static final Prop PRIORITYFACTOR = new Prop<>("priority", "Priority Factor", 8, Integer.class); - public static final Prop QOS = new Prop<>("qos", "QoS", 26, Integer.class); + public static final Prop QOS = new Prop<>("qos", "QoS", 16, Integer.class); public static final Prop CPUCAP = new Prop<>("cpuCap", "CPU Cap", 0, Integer.class); public static final Prop REQSCREEN = new Prop<>("requestedScreen", "Requested Screen", DSScreenBoth.TOP, DSScreenBoth.class); public static final Prop LAYOUT = new Prop<>("layout", "Layout", Layout.SEPARATE, Layout.class);