Преглед на файлове

SoftwareKeyboard: Interactive data size should include size field. (#907)

bunnei преди 6 години
родител
ревизия
ad2424171a
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardApplet.cs

+ 3 - 3
Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardApplet.cs

@@ -166,9 +166,9 @@ namespace Ryujinx.HLE.HOS.Applets
                 }
                 }
                 else
                 else
                 {
                 {
-                    // In interactive mode, we write the length of the text
-                    // as a long, rather than a result code.
-                    writer.Write((long)output.Length);
+                    // In interactive mode, we write the length of the text as a long, rather than
+                    // a result code. This field is inclusive of the 64-bit size.
+                    writer.Write((long)output.Length + 8);
                 }
                 }
 
 
                 writer.Write(output);
                 writer.Write(output);